Skip to content

Commit 34bc6ea

Browse files
fixed bug with woql test on order_by
1 parent f9d30f4 commit 34bc6ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/woql.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)