now merges default options

This commit is contained in:
2016-07-17 16:34:31 +02:00
parent dc53498f22
commit 93bbe75f37
9 changed files with 99 additions and 41 deletions

View File

@@ -6,7 +6,11 @@ import npmExtra = require("../dist/index");
describe("npmextra",function(){
it("should read a config file",function(){
let testData = npmExtra.dataFor("testTool",path.join(process.cwd(),"test/"));
console.log(testData);
let testData = npmExtra.dataFor({
toolName:"testTool",
defaultSettings:{someKey2:"someValue2"},
cwd: path.join(process.cwd(),"test/")
});
testData.should.have.ownProperty("someKey2");
});
});