update test file
This commit is contained in:
parent
36de8e11f0
commit
1185df362b
55
test/test.ts
55
test/test.ts
@ -1,37 +1,36 @@
|
|||||||
import "typings-test";
|
import 'typings-test'
|
||||||
|
|
||||||
import smartcli = require("../dist/index");
|
import smartcli = require('../dist/index')
|
||||||
let beautylog = require("beautylog");
|
let beautylog = require('beautylog')
|
||||||
let should = require("should");
|
let should = require('should')
|
||||||
|
|
||||||
describe("smartcli.Smartcli class",function(){
|
describe('smartcli.Smartcli class',function(){
|
||||||
let smartCliTestObject:smartcli.Smartcli;
|
let smartCliTestObject:smartcli.Smartcli
|
||||||
describe("new Smartcli()",function(){
|
describe('new Smartcli()',function(){
|
||||||
it("should create a new Smartcli",function(){
|
it('should create a new Smartcli',function(){
|
||||||
smartCliTestObject = new smartcli.Smartcli();
|
smartCliTestObject = new smartcli.Smartcli()
|
||||||
smartCliTestObject.should.be.instanceof(smartcli.Smartcli);
|
smartCliTestObject.should.be.instanceof(smartcli.Smartcli)
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
describe(".addCommand",function(){
|
describe('.addCommand',function(){
|
||||||
it("should add an command",function(){
|
it('should add an command',function(){
|
||||||
smartCliTestObject.addCommand({
|
smartCliTestObject.addCommand({
|
||||||
commandName:"awesome"
|
commandName:'awesome'
|
||||||
});
|
})
|
||||||
|
})
|
||||||
});
|
})
|
||||||
});
|
describe('.standardTask',function(){
|
||||||
describe(".standardTask",function(){
|
it('should start parsing a standardTask',function(done){
|
||||||
it("should start parsing a standardTask",function(done){
|
|
||||||
smartCliTestObject.standardTask()
|
smartCliTestObject.standardTask()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log("this is the standard Task!");
|
console.log('this is the standard Task!')
|
||||||
});
|
})
|
||||||
done();
|
done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
describe(".startParse",function(){
|
describe('.startParse',function(){
|
||||||
it("should start parsing the CLI input",function(){
|
it('should start parsing the CLI input',function(){
|
||||||
smartCliTestObject.startParse();
|
smartCliTestObject.startParse()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
});
|
|
||||||
|
Loading…
Reference in New Issue
Block a user