🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

array-to-tree

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-to-tree - npm Package Compare versions

Comparing version

to
1.1.1

8

package.json
{
"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',