File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -270,11 +270,21 @@ describe('woql queries', function () {
270
270
271
271
} )
272
272
273
- it ( 'check the unique method' , function ( ) {
273
+ it ( 'check the idgen method' , function ( ) {
274
274
275
- const woqlObject = WOQL . unique ( "doc:Station_ " , [ "v:Start_ID" ] , "v:Start_IRI " ) ;
275
+ const woqlObject = WOQL . idgen ( "doc:Station " , [ "v:Start_ID" ] , "v:Start_Station_URL " ) ;
276
276
277
- const jsonObj = { unique : [ 'doc:Station_' , { list : [ "v:Start_ID" ] } , 'v:Start_IRI' ] }
277
+ const jsonObj = { "idgen" : [ 'doc:Station' , { "list" : [ "v:Start_ID" ] } , 'v:Start_Station_URL' ] }
278
+
279
+ expect ( woqlObject . json ( ) ) . to . eql ( jsonObj ) ;
280
+
281
+ } )
282
+
283
+ it ( 'check the typecast method' , function ( ) {
284
+
285
+ const woqlObject = WOQL . typecast ( "v:Duration" , "xsd:integer" , "v:Duration_Cast" ) ;
286
+
287
+ const jsonObj = { "typecast" : [ "v:Duration" , "xsd:integer" , "v:Duration_Cast" ] }
278
288
279
289
expect ( woqlObject . json ( ) ) . to . eql ( jsonObj ) ;
280
290
You can’t perform that action at this time.
0 commit comments