@graphistry/falcor-query-syntax
Advanced tools
Comparing version 2.1.5 to 2.1.7
{ | ||
"name": "@graphistry/falcor-query-syntax", | ||
"version": "2.1.5", | ||
"version": "2.1.7", | ||
"description": "ES6 Template String and Builder function for Creating Falcor Paths (Experimental)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -129,2 +129,18 @@ var expect = require('chai').expect; | ||
}); | ||
it('should ignore empty ... queries', function() { | ||
expect(toPaths`{ | ||
titles: { | ||
... { }, | ||
... { | ||
[9..0]: { | ||
... { }, | ||
... {rating, box-shot} | ||
} | ||
} | ||
} | ||
}`).to.deep.equal([ | ||
['titles', { from:0, length:10 }, ['rating', 'box-shot']] | ||
]); | ||
}); | ||
it('should do all the things at once', function() { | ||
@@ -131,0 +147,0 @@ var range = { from: 10, to: 9 }; |
180219
960