underscore-keypath
Advanced tools
Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "underscore-keypath", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"homepage": "https://github.com/jeeeyul/underscore-keypath", | ||
@@ -15,3 +15,3 @@ "authors": [ | ||
"dependencies" : { | ||
"underscore" : "1.5.2" | ||
"underscore" : "1.x" | ||
}, | ||
@@ -18,0 +18,0 @@ "ignore": [ |
Package.describe({ | ||
summary : "Keypath mechanism for underscore", | ||
git : "https://github.com/jeeeyul/underscore-keypath.git", | ||
version : "0.9.0" | ||
version : "0.9.1" | ||
}); | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name" : "underscore-keypath", | ||
"version" : "0.9.0", | ||
"version" : "0.9.1", | ||
"author" : "Jeeeyul Lee <jeeeyul@gmail.com>", | ||
"description" : "Adds Key-Path mechanism extensions for underscore", | ||
"main" : "./lib/underscore-keypath.min.js", | ||
@@ -28,6 +24,6 @@ | ||
"devDependencies" : { | ||
"should" : "3.1.2", | ||
"grunt": "0.4.2", | ||
"grunt-contrib-jshint": "0.6.3", | ||
"grunt-contrib-uglify": "0.3.2", | ||
"should" : "*", | ||
"grunt": "*", | ||
"grunt-contrib-jshint": "*", | ||
"grunt-contrib-uglify": "*", | ||
"grunt-mocha-test" : "*" | ||
@@ -34,0 +30,0 @@ }, |
@@ -35,3 +35,3 @@ /* globals it:false, describe:false, it:false, before:false */ | ||
_(fixture).pluckByKeyPath("name") | ||
.should.be.an.Array | ||
.should.be.an.instanceOf(Array) | ||
.and.containEql("foo") | ||
@@ -48,3 +48,3 @@ .and.containEql("bar") | ||
"options.company.name" : "AAA" | ||
}).should.be.an.Array | ||
}).should.be.an.instanceOf(Array) | ||
.and.containEql(fixture[0]) | ||
@@ -58,3 +58,3 @@ .and.containEql(fixture[2]) | ||
"age" : 1 | ||
}).should.be.an.Object | ||
}).should.be.an.instanceOf(Object) | ||
.and.be.exactly(fixture[0]); | ||
@@ -75,3 +75,3 @@ }); | ||
.value() | ||
.should.be.an.Number | ||
.should.be.an.instanceOf(Number) | ||
.and.be.exactly(3); | ||
@@ -122,5 +122,5 @@ }); | ||
var group = _(fixture).groupByKeyPath("options.company.name"); | ||
group["AAA"].should.be.an.Array | ||
group["AAA"].should.be.an.instanceOf(Array) | ||
.and.have.lengthOf(2); | ||
group["BBB"].should.be.an.Array | ||
group["BBB"].should.be.an.instanceOf(Array) | ||
.and.have.lengthOf(1); | ||
@@ -127,0 +127,0 @@ }); |
Sorry, the diff of this file is not supported yet
35073