Skip to content

Commit e65ea8d

Browse files
committed
[Test] Add test star method in wqol.js
1 parent ed996cc commit e65ea8d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

test/woql.spec.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ describe('woql queries', function () {
113113

114114
it('check the from method',function(){
115115

116-
const Query=WOQL.limit(10);
117-
//const woqlObject=WOQL.from("http://dburl", Query);
116+
const WOQLQuery=WOQL.limit(10);
117+
//const woqlObject=WOQL.from("http://dburl", WOQLQuery);
118118

119119
const woqlObjectChain=WOQL.from("http://dburl").limit(10);
120120

@@ -125,6 +125,20 @@ describe('woql queries', function () {
125125

126126
})
127127

128+
it('check the star method',function(){
129+
130+
const woqlObject=WOQL.limit(10).star();
131+
132+
const jsonObj={ limit: [ 10, { "triple": [
133+
"v:Subject",
134+
"v:Predicate",
135+
"v:Object"
136+
] } ] };
137+
138+
expect(woqlObject.json()).to.eql(jsonObj);
139+
140+
})
141+
128142
it('check the select method',function(){
129143

130144
const woqlObject=WOQL.select("V1", WOQL.triple("a", "b", "c"));

0 commit comments

Comments
 (0)