File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -365,18 +365,18 @@ describe('woql queries', function () {
365365 } )
366366
367367 it ( 'check the order_by method' , function ( ) {
368- const woqlObject = WOQL . order_by ( WOQL . asc ( "v:B" ) ) ;
369- const jsonObj = { order_by : [ { asc : [ 'v:B' ] } , { } ] } ;
368+ const woqlObject = WOQL . order_by ( "v:B" ) ;
369+ const jsonObj = { order_by : [ [ { asc : [ 'v:B' ] } ] , { } ] } ;
370370 expect ( woqlObject . json ( ) ) . to . eql ( jsonObj ) ;
371371
372372 const desc = WOQL . desc ( [ "v:C" , "v:A" ] ) ;
373373 const woqlObject2 = WOQL . order_by ( desc ) ;
374- const jsonObj2 = { order_by : [ { desc : [ 'v:C' , "v:A" ] } , { } ] } ;
374+ const jsonObj2 = { order_by : [ [ { desc : [ 'v:C' , "v:A" ] } ] , { } ] } ;
375375 expect ( woqlObject2 . json ( ) ) . to . eql ( jsonObj2 ) ;
376376
377377 const ascd = WOQL . asc ( [ "v:C" , "v:A" ] ) ;
378378 const woqlObject3 = WOQL . order_by ( ascd ) ;
379- const jsonObj3 = { order_by : [ { asc : [ 'v:C' , "v:A" ] } , { } ] } ;
379+ const jsonObj3 = { order_by : [ [ { asc : [ 'v:C' , "v:A" ] } ] , { } ] } ;
380380 expect ( woqlObject3 . json ( ) ) . to . eql ( jsonObj3 ) ;
381381
382382
You can’t perform that action at this time.
0 commit comments