option-tree-navigate
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -25,3 +25,7 @@ module.exports = OptionTree | ||
has: has.bind(null, tree, opts) | ||
// query nodes | ||
has: has.bind(null, tree, opts), | ||
// for plugins | ||
_tree: tree | ||
} | ||
@@ -28,0 +32,0 @@ } |
{ | ||
"name": "option-tree-navigate", | ||
"description": "navigate an object tree", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "nrw/option-tree-navigate" |
@@ -228,1 +228,15 @@ var test = require('tape') | ||
}) | ||
test('exposes tree', function (t) { | ||
var data = [{ | ||
id: 'x', | ||
_opts: [ | ||
{id: 'y'}, | ||
{id: 'z'} | ||
] | ||
}] | ||
tree = NavTree(data) | ||
t.equal(tree._tree, data) | ||
t.end() | ||
}) |
13279
470