Skip to content

Commit fdeb16b

Browse files
committed
fixing the test for the pagination related methods in woql.js
1 parent e396905 commit fdeb16b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/woql.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('woql queries', function () {
8787

8888
const jsonObj={
8989
when: [
90-
{"true": []},
90+
true,
9191
{ add_quad: [ 'scm:id', 'rdf:type', 'owl:Class', 'db:schema' ] }
9292
]
9393
};

test/woqlQuery.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ describe('woql query object', function () {
548548

549549
const woqlObject=WOQL.limit(2).start(10);
550550

551-
const jsonObj={ limit: [ 3, { start: [ 10, {} ] } ] };
551+
const jsonObj={ limit: [ 3, { start: [ 0, {} ] } ] };
552552

553553
expect(woqlObject.setPageSize(3).json()).to.eql(jsonObj);
554554

@@ -557,11 +557,11 @@ describe('woql query object', function () {
557557
it('check the addStart method',function(){
558558
global.sandbox.stub(axios, "get").returns(Promise.resolve({status:200, data: {}}));
559559

560-
const woqlObject=WOQL.limit(2).start(10);
560+
const woqlObject=WOQL.limit(2);
561561

562-
const jsonObj={ limit: [ 2, { start: [ 11, {} ] } ] };
562+
const jsonObj={ start: [ 10, { limit: [ 2, {} ] } ] };
563563

564-
expect(woqlObject.addStart(1).json()).to.eql(jsonObj);
564+
expect(woqlObject.addStart(10).json()).to.eql(jsonObj);
565565

566566
})
567567

0 commit comments

Comments
 (0)