require-tree
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -61,3 +61,3 @@ // require-tree | ||
if (isDirectory(fpath)) { | ||
tree[name] = require_tree(fpath, options) | ||
tree[file] = require_tree(fpath, options) | ||
return | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "require-tree", | ||
"description": "require() whole directory trees", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"main": "index.js", | ||
@@ -25,7 +25,11 @@ "dependencies": {}, | ||
"tree", | ||
"api", | ||
"multiple", | ||
"paths", | ||
"nested", | ||
"folders", | ||
"directory", | ||
"directories" | ||
"directories", | ||
"loader", | ||
"api" | ||
] | ||
} |
@@ -23,2 +23,8 @@ | ||
var VERSIONED = { | ||
'1.0.0': { | ||
v1: 'success' | ||
} | ||
} | ||
describe('when given a file tree', function(){ | ||
@@ -38,2 +44,11 @@ | ||
describe('folder name', function() { | ||
it('should be mapped as named in filesystem', function(){ | ||
var versioned = require_tree('./dot-in-foldername') | ||
assert.deepEqual(versioned, VERSIONED) | ||
}); | ||
}) | ||
describe('paths', function(){ | ||
@@ -40,0 +55,0 @@ |
12917
12
301