Skip to content

Commit 9b55727

Browse files
committed
[Test] added test description and change test comment
1 parent 5d2ef3a commit 9b55727

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/woql.spec.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,21 @@ describe('triple builder chanier', function () {
452452

453453
})
454454

455+
it('check the description method',function(){
456+
457+
const woqlObject=WOQL.addClass("New class").description("A new class object.").entity();
458+
459+
const jsonObj={ "add_quad": ['doc:x', 'rdfs:comment', { '@value': 'my comment', '@language': 'en' }, 'db:schema'] };
460+
461+
expect(woqlObject.json()).to.eql(jsonObj);
462+
463+
})
464+
455465
it('check the comment method',function(){
456466

457467
const woqlObject=WOQL.node("doc:x", "add_quad").comment("my comment");
458468

459-
const jsonObj={ "add_quad": ['doc:x', 'rdfs:comment', { '@value': 'my comment', '@language': 'en' }, 'db:schema'] };
469+
const jsonObj={ "comment": "my comment" };
460470

461471
expect(woqlObject.json()).to.eql(jsonObj);
462472

0 commit comments

Comments
 (0)