Comparing version 0.15.0 to 0.15.1
0.15.1 / 2016-08-30 | ||
=================== | ||
* cloning should preserve the root | ||
* chore(package): update standard to version 8.0.0 (#18) | ||
0.15.0 / 2016-08-10 | ||
@@ -3,0 +9,0 @@ =================== |
@@ -291,3 +291,3 @@ 'use strict' | ||
let timer = utils.timer() | ||
let tree = new Tree() | ||
let tree = new Tree(this.root) | ||
tree.graph = this.graph.clone(file => file.clone(tree), value => value) | ||
@@ -294,0 +294,0 @@ debug('cloned tree (took %s)', timer()) |
{ | ||
"name": "mako-tree", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"main": "./lib/tree", | ||
@@ -31,3 +31,3 @@ "description": "The build tree structure used internally by mako", | ||
"mocha": "^3.0.0", | ||
"standard": "^7.1.2" | ||
"standard": "^8.0.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "scripts": { |
@@ -474,3 +474,3 @@ /* eslint-env mocha */ | ||
// <- c.js | ||
let tree = new Tree() | ||
let tree = new Tree('/some/root') | ||
let a = tree.addFile('a.js') | ||
@@ -485,7 +485,12 @@ let b = tree.addFile('b.js') | ||
assert.notStrictEqual(tree, clone) | ||
assert.notStrictEqual(clone, tree) | ||
assert.instanceOf(clone, Tree) | ||
assert.strictEqual(tree.size(), clone.size()) | ||
assert.deepEqual(tree.getFiles({ topolical: true }), clone.getFiles({ topolical: true })) | ||
assert.strictEqual(clone.size(), tree.size()) | ||
assert.deepEqual(clone.getFiles({ topological: true }), tree.getFiles({ topological: true })) | ||
}) | ||
it('should preserve the root', function () { | ||
let clone = tree.clone() | ||
assert.strictEqual(clone.root, tree.root) | ||
}) | ||
}) | ||
@@ -492,0 +497,0 @@ |
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
65599
1503