Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit ca41a21

Browse files
committed
one more
1 parent 08f409a commit ca41a21

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/cds.ql.test.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,25 @@ describe('cds.ql → cqn', () => {
248248
})
249249
})
250250

251+
test ("where x='*'", ()=>{
252+
if (cdr)
253+
expect (SELECT.from(Foo).where({x:'*'}))
254+
.to.eql(SELECT.from(Foo).where("x='*'"))
255+
.to.eql(SELECT.from(Foo).where("x=",'*'))
256+
.to.eql(SELECT.from(Foo).where`x=${'*'}`)
257+
.to.eql(
258+
CQL`SELECT from Foo where x='*'`
259+
)
260+
if (cdr)
261+
expect (SELECT.from(Foo).where({x:['*',1]}))
262+
.to.eql(SELECT.from(Foo).where("x in ('*',1)"))
263+
.to.eql(SELECT.from(Foo).where("x in",['*',1]))
264+
.to.eql(SELECT.from(Foo).where`x in ${['*',1]}`)
265+
.to.eql(
266+
CQL`SELECT from Foo where x in ('*',1)`
267+
)
268+
})
269+
251270
test ('where, and, or', ()=>{
252271
expect (
253272
SELECT.from(Foo).where({x:1,and:{y:2}})

0 commit comments

Comments
 (0)