File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff 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" ) ) ;
You can’t perform that action at this time.
0 commit comments