@@ -25,7 +25,7 @@ describe("List comprehension", () => {
2525 const variable = new Cypher . Variable ( ) ;
2626 const exprVariable = new Cypher . Param ( [ 1 , 2 , 5 ] ) ;
2727
28- const listComprehension = new Cypher . ListComprehension ( variable , exprVariable ) ;
28+ const listComprehension = new Cypher . ListComprehension ( variable ) . in ( exprVariable ) ;
2929
3030 const queryResult = new TestClause ( listComprehension ) . build ( ) ;
3131
@@ -47,7 +47,7 @@ describe("List comprehension", () => {
4747 const exprVariable = new Cypher . Param ( [ 1 , 2 , 5 ] ) ;
4848 const andExpr = Cypher . eq ( variable , new Cypher . Param ( 5 ) ) ;
4949
50- const listComprehension = new Cypher . ListComprehension ( variable , exprVariable ) . where ( andExpr ) ;
50+ const listComprehension = new Cypher . ListComprehension ( variable ) . in ( exprVariable ) . where ( andExpr ) ;
5151
5252 const queryResult = new TestClause ( listComprehension ) . build ( ) ;
5353
@@ -96,7 +96,7 @@ describe("List comprehension", () => {
9696 const exprVariable = new Cypher . Param ( [ 1 , 2 , 5 ] ) ;
9797
9898 expect ( ( ) => {
99- new Cypher . ListComprehension ( variable , exprVariable ) . in ( exprVariable ) ;
99+ new Cypher . ListComprehension ( variable ) . in ( exprVariable ) . in ( exprVariable ) ;
100100 } ) . toThrow ( "Cannot set 2 lists in list comprehension IN" ) ;
101101 } ) ;
102102
0 commit comments