Skip to content

Commit 8ed9f9e

Browse files
committed
[Test] Update test for set and get Vocabbulary in WOQL.js
1 parent ec6419f commit 8ed9f9e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/woqlQuery.spec.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,13 @@ describe('pre-roll queries', function () {
442442

443443
describe('woql query object', function () {
444444

445-
it('check the setVocabulary method',function(){
445+
it('check the setVocabulary and getVocabulary method',function(){
446446
global.sandbox.stub(axios, "get").returns(Promise.resolve({status:200, data: {}}));
447447

448448
const woqlObject=WOQL.limit(2).start(0);
449449
woqlObject.setVocabulary("vocab");
450-
//console.log(woqlObject.getAllDocuments().json());
451-
//done();
452-
//expect(woqlObject.setVocabulary("vocab")).to.eql(jsonObj);
450+
451+
expect(woqlObject.getVocabulary()).to.eql("vocab");
453452

454453
})
455454

0 commit comments

Comments
 (0)