diff --git a/test/cds.ql.test.js b/test/cds.ql.test.js index 706e8a2a..81148750 100644 --- a/test/cds.ql.test.js +++ b/test/cds.ql.test.js @@ -319,6 +319,19 @@ describe('cds.ql → cqn', () => { ) }) + test('where ({x:[undefined]})', () => { + if (cdr) expect ( + SELECT.from(Foo).where({x:[undefined]}) + ).to.eql ({ SELECT: { + from: {ref:['Foo']}, + where: [ + {ref:['x']}, + 'in', + { list: [ {val:undefined} ] } + ] + }}) + }) + test('where ( ... cql | {x:y} )', () => { const args = [`foo`, "'bar'", 3] const ID = 11