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 () {
113
113
114
114
it ( 'check the from method' , function ( ) {
115
115
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 );
118
118
119
119
const woqlObjectChain = WOQL . from ( "http://dburl" ) . limit ( 10 ) ;
120
120
@@ -125,6 +125,20 @@ describe('woql queries', function () {
125
125
126
126
} )
127
127
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
+
128
142
it ( 'check the select method' , function ( ) {
129
143
130
144
const woqlObject = WOQL . select ( "V1" , WOQL . triple ( "a" , "b" , "c" ) ) ;
You can’t perform that action at this time.
0 commit comments