From de796e5a894375e91107b920e479eceea81349ca Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 27 Aug 2021 10:45:11 +0200 Subject: [PATCH] Fixed '*' in upcomming release --- test/cds.ql.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cds.ql.test.js b/test/cds.ql.test.js index 9bf520c9..e38d3b39 100644 --- a/test/cds.ql.test.js +++ b/test/cds.ql.test.js @@ -111,7 +111,7 @@ describe('cds.ql → cqn', () => { .to.eql(SELECT.from(Foo).columns('*')) .to.eql(SELECT.from(Foo).columns((foo) => foo('*'))) .to.eql({ - SELECT: { from: { ref: ['Foo'] }, columns: [{ ref: ['*'] }] }, + SELECT: { from: { ref: ['Foo'] }, columns: [cdr ? '*' : { ref: ['*'] }] }, }) if (cdr === 'all') expect(parsed).to.eql(fluid) @@ -162,7 +162,7 @@ describe('cds.ql → cqn', () => { .to.eql({ SELECT: { from: { ref: ['Foo'] }, - columns: [{ ref: ['a'] }, { ref: ['b'] }, { ref: ['*'] }], + columns: [{ ref: ['a'] }, { ref: ['b'] }, cdr ? '*' : { ref: ['*'] }], }, }) }) @@ -182,7 +182,7 @@ describe('cds.ql → cqn', () => { SELECT: { from: { ref: ['Foo'] }, columns: [ - { ref: ['*'] }, + cdr ? '*' : { ref: ['*'] }, { ref: ['x'] }, { ref: ['car'], expand: ['*'] }, {