packpath
Version:
Find the path(s) package.json.
21 lines (18 loc) • 787 B
JavaScript
var testutil = require('testutil')
, faux_module_parent = require('faux-module-parent');
describe('packpath', function(){
describe('+ self()', function(){
it('should return the directory of the package.json for faux-module-self', function(){
//console.log(faux_module_parent.self());
//console.log(faux_module_parent.selfFromPackPath());
EQ (faux_module_parent.self(), faux_module_parent.selfFromPackPath())
})
})
describe('+ parent()', function(){
it('should return the directory of the package.json for faux-module-parent', function(){
//console.log(faux_module_parent.parent());
//console.log(faux_module_parent.parentFromPackPath());
EQ (faux_module_parent.parent(), faux_module_parent.parentFromPackPath())
})
})
})