smartcli/test/test.ts

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2016-06-10 00:27:04 +00:00
import "typings-test";
2016-06-10 02:13:23 +00:00
import smartcli = require("../dist/index");
2016-05-11 00:11:40 +00:00
let beautylog = require("beautylog");
let should = require("should");
2015-10-14 18:59:01 +00:00
2016-06-10 02:13:23 +00:00
describe("smartcli.Smartcli class",function(){
let smartCliTestObject:smartcli.Smartcli;
describe("new Smartcli()",function(){
it("should create a new Smartcli",function(){
smartCliTestObject = new smartcli.Smartcli();
smartCliTestObject.should.be.instanceof(smartcli.Smartcli);
});
});
describe(".addCommand",function(){
it("should add an command",function(){
smartCliTestObject.addCommand({
commandName:"awesome"
});
});
});
describe(".standardTask",function(){
it("should start parsing a standardTask",function(done){
smartCliTestObject.standardTask()
.then(() => {
console.log("this is the standard Task!");
});
done();
})
})
describe(".startParse",function(){
it("should start parsing the CLI input",function(){
smartCliTestObject.startParse();
})
})
});