From ade170367b5dcfd1fbb7a6f7d10853b8a40b6ed5 Mon Sep 17 00:00:00 2001 From: D051920 Date: Thu, 30 Jul 2020 16:33:28 +0200 Subject: [PATCH] Enable temporary disabled test --- test/cds.ql.test.js | 8 +++----- test/localized-data.test.js | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/cds.ql.test.js b/test/cds.ql.test.js index 3ecdf19b..d69aea66 100644 --- a/test/cds.ql.test.js +++ b/test/cds.ql.test.js @@ -261,7 +261,7 @@ describe('cds.ql → cqn', () => { // same for works distinct }) - test.skip('where ( ... cql | {x:y} )', () => { + test('where ( ... cql | {x:y} )', () => { const args = [`foo`, "'bar'", 3] const ID = 11 @@ -278,7 +278,6 @@ describe('cds.ql → cqn', () => { from: { ref: ['Foo'] }, where: cdr ? [ - // '(', //> this one is not required { ref: ['ID'] }, '=', { val: ID }, @@ -287,7 +286,7 @@ describe('cds.ql → cqn', () => { 'in', { val: args }, 'and', - '(', //> this one is missing, and that's changing the logic -> that's a BUG + '(', { ref: ['x'] }, 'like', { val: '%x%' }, @@ -298,7 +297,6 @@ describe('cds.ql → cqn', () => { ')', ] : [ - '(', //> this one is not required { ref: ['ID'] }, '=', { val: ID }, @@ -307,7 +305,7 @@ describe('cds.ql → cqn', () => { 'in', { val: args }, 'and', - // '(', //> this one is missing, and that's changing the logic -> that's a BUG + '(', { ref: ['x'] }, 'like', { val: '%x%' }, diff --git a/test/localized-data.test.js b/test/localized-data.test.js index fd57add6..77c1f5eb 100644 --- a/test/localized-data.test.js +++ b/test/localized-data.test.js @@ -72,7 +72,7 @@ describe('Localized Data', () => { ]) }) - xit('supports @cds.localized:false', async ()=>{ + it('supports @cds.localized:false', async ()=>{ const { data } = await GET(`/browse/BooksSans?&$select=title,localized_title&$expand=currency&$filter=locale eq 'de' or locale eq null`, { headers: { 'Accept-Language': 'de' }, })