Files
npmextra/test/test.ts

16 lines
451 B
TypeScript
Raw Normal View History

2016-07-17 01:23:22 +02:00
import "typings-test";
import path = require("path");
import "should";
import npmExtra = require("../dist/index");
describe("npmextra",function(){
it("should read a config file",function(){
2016-07-17 16:34:31 +02:00
let testData = npmExtra.dataFor({
toolName:"testTool",
defaultSettings:{someKey2:"someValue2"},
cwd: path.join(process.cwd(),"test/")
});
testData.should.have.ownProperty("someKey2");
2016-07-17 01:23:22 +02:00
});
});