From 5a23ba0f7626ecbfb5a2752b9a3e7691c7682a81 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 1 Apr 2021 16:42:55 +0200 Subject: [PATCH] Prepare cds5 --- test/hierarchical-data.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/hierarchical-data.test.js b/test/hierarchical-data.test.js index e411eff0..b374a320 100644 --- a/test/hierarchical-data.test.js +++ b/test/hierarchical-data.test.js @@ -1,11 +1,10 @@ const {expect} = require('../test') const cds = require('@sap/cds/lib') -// monkey patching older releases: -if (!cds.compile.cdl) cds.compile.cdl = cds.parse const { parse:cdr } = cds.ql -const model = cds.compile.cdl (` +// should become cds.compile(...) when cds5 is released +const model = cds.compile.to.csn (` entity Categories { key ID : Integer; name : String;