Using managed compositions for Order.Items (#273)

* Using managed compositions for Order.Items
Co-authored-by: sjvans <30337871+sjvans@users.noreply.github.com>
This commit is contained in:
Daniel Hutzel
2021-11-08 17:41:33 +01:00
committed by GitHub
parent 482b71e60b
commit 8cc2db7118
7 changed files with 16 additions and 22 deletions

View File

@@ -1,8 +1,6 @@
const cds = require('@sap/cds/lib')
const {expect} = cds.test
const { parse:cdr } = cds.ql
// should become cds.compile(...) when cds5 is released
const model = cds.compile.to.csn (`
entity Categories {
@@ -78,9 +76,7 @@ describe('Hierarchical Data', ()=>{
{ ID:101, name:'Cat' },
{ ID:108, name:'Catweazle' }
]
return 'skipped as this will be fixed in a newer cds version'
if (cdr) expect ( await SELECT.from(Cats) ).to.containSubset (expected)
else expect ( await SELECT.from(Cats) ).to.eql (expected)
expect ( await SELECT`ID,name`.from(Cats) ).to.eql (expected)
})
})