array-to-tree
Advanced tools
Comparing version
{ | ||
"name": "array-to-tree", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Convert a plain array of nodes (with pointers to parent nodes) to a tree", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "mocha --reporter nyan", | ||
"tdd": "npm test -- --watch" | ||
}, | ||
@@ -20,7 +21,4 @@ "repository": "alferov/array-to-tree", | ||
"devDependencies": { | ||
"babel-core": "^5.8.24", | ||
"chai": "^3.2.0", | ||
"eslint": "^1.4.1", | ||
"gulp": "^3.9.0", | ||
"gulp-mocha": "^2.1.3", | ||
"mocha": "^2.3.0" | ||
@@ -27,0 +25,0 @@ }, |
@@ -14,3 +14,3 @@ 'use strict'; | ||
before(function() { | ||
beforeEach(function() { | ||
current = toTree({ data: initial }); | ||
@@ -70,9 +70,8 @@ }); | ||
}); | ||
}) | ||
describe('with different options', function() { | ||
it('should work with custom link to parent', function() { | ||
it('should work with custom parents links', function() { | ||
var current = toTree({ | ||
current = toTree({ | ||
data: customInitial, | ||
@@ -79,0 +78,0 @@ parentProperty: 'parent', |
3
-50%9496
-3.95%12
-7.69%193
-6.76%