@@ -165,7 +165,7 @@ namespace JsonTests {
165
165
} )
166
166
167
167
it ( '$.object on cell' , async ( ) => {
168
- const res = await database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
168
+ const res = await database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
169
169
. groupBy ( 'bar' , {
170
170
x : row => $ . array ( $ . object ( row . foo ) ) ,
171
171
} )
@@ -179,7 +179,7 @@ namespace JsonTests {
179
179
} )
180
180
181
181
it ( '$.array groupBy' , async ( ) => {
182
- await expect ( database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
182
+ await expect ( database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
183
183
. groupBy ( [ 'foo' ] , {
184
184
x : row => $ . array ( row . bar . obj . x ) ,
185
185
y : row => $ . array ( row . bar . obj . y ) ,
@@ -191,7 +191,7 @@ namespace JsonTests {
191
191
{ foo : { id : 2 , value : 2 } , x : [ 3 ] , y : [ 'c' ] } ,
192
192
] )
193
193
194
- await expect ( database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
194
+ await expect ( database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
195
195
. groupBy ( [ 'foo' ] , {
196
196
x : row => $ . array ( row . bar . obj . x ) ,
197
197
y : row => $ . array ( row . bar . obj . y ) ,
@@ -203,7 +203,7 @@ namespace JsonTests {
203
203
[ 'c' ] ,
204
204
] )
205
205
206
- await expect ( database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
206
+ await expect ( database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
207
207
. groupBy ( [ 'foo' ] , {
208
208
x : row => $ . array ( row . bar . obj . x ) ,
209
209
y : row => $ . array ( row . bar . obj . y ) ,
@@ -234,7 +234,7 @@ namespace JsonTests {
234
234
} )
235
235
236
236
it ( '$.array in json' , async ( ) => {
237
- const res = await database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
237
+ const res = await database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
238
238
. groupBy ( 'foo' , {
239
239
bars : row => $ . array ( $ . object ( {
240
240
value : row . bar . value ,
@@ -278,7 +278,7 @@ namespace JsonTests {
278
278
} )
279
279
280
280
it ( '$.array with expressions' , async ( ) => {
281
- const res = await database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
281
+ const res = await database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
282
282
. groupBy ( 'foo' , {
283
283
bars : row => $ . array ( $ . object ( {
284
284
value : row . bar . value ,
@@ -307,7 +307,7 @@ namespace JsonTests {
307
307
} )
308
308
309
309
it ( '$.array nested' , async ( ) => {
310
- const res = await database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
310
+ const res = await database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
311
311
. orderBy ( row => row . foo . id )
312
312
. groupBy ( 'foo' , {
313
313
y : row => $ . array ( row . bar . obj . x ) ,
@@ -325,7 +325,7 @@ namespace JsonTests {
325
325
} )
326
326
327
327
it ( 'non-aggr func' , async ( ) => {
328
- const res = await database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
328
+ const res = await database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
329
329
. groupBy ( 'foo' , {
330
330
y : row => $ . array ( row . bar . obj . x ) ,
331
331
} )
@@ -346,7 +346,7 @@ namespace JsonTests {
346
346
} )
347
347
348
348
it ( 'non-aggr func inside aggr' , async ( ) => {
349
- const res = await database . join ( [ 'foo' , 'bar' ] as const , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
349
+ const res = await database . join ( [ 'foo' , 'bar' ] , ( foo , bar ) => $ . eq ( foo . id , bar . pid ) )
350
350
. orderBy ( row => row . foo . id )
351
351
. groupBy ( 'foo' , {
352
352
y : row => $ . array ( row . bar . obj . x ) ,
0 commit comments