Comparing version 0.0.3 to 0.0.4
@@ -43,3 +43,3 @@ // Copyright 2013 Sune Simonsen | ||
roots.filter(function (root) { | ||
return root; | ||
return typeof root === 'object'; | ||
}).forEach(function (root) { | ||
@@ -46,0 +46,0 @@ Object.keys(root).filter(function (fieldName) { |
{ | ||
"name": "collect-js", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "description": "A JavaScript library for collecting data from tree data structures", |
@@ -64,2 +64,7 @@ /*global describe, it*/ | ||
it('returns an empty list for query: foo', function () { | ||
var result = collect('foo', store); | ||
expect(result, 'to be empty'); | ||
}); | ||
it('returns an empty list for query: foo.bar', function () { | ||
@@ -70,2 +75,7 @@ var result = collect('foo.bar', store); | ||
it('returns an empty list for query: /foo/', function () { | ||
var result = collect(/foo/, store); | ||
expect(result, 'to be empty'); | ||
}); | ||
it('returns an empty list for query: ..bar', function () { | ||
@@ -72,0 +82,0 @@ var result = collect('foo.bar', store); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19106
337