Sync with cds runtime for next release

This commit is contained in:
Mikhail Goncharov
2022-02-14 12:06:22 +01:00
parent 984ea2133b
commit a7511ed677
2 changed files with 55 additions and 0 deletions

View File

@@ -32,6 +32,27 @@ describe('Consuming Services locally', () => {
})
})
}).where(`name like`, 'E%')
if (cds.version >= '5.9.0') {
expect(authors).to.containSubset([
{
name: 'Emily Brontë',
books: [
{
title: 'Wuthering Heights',
currency: { name: 'British Pound', symbol: '£' },
},
],
},
{
name: 'Edgar Allen Poe',
books: [
{ title: 'The Raven', currency: { name: 'US Dollar', symbol: '$' } },
{ title: 'Eleonora', currency: { name: 'US Dollar', symbol: '$' } },
],
},
])
return
}
expect(authors).to.containSubset([
{
name: 'Emily Brontë',