update test file

This commit is contained in:
Philipp Kunz 2016-10-15 01:06:36 +02:00
parent 36de8e11f0
commit 1185df362b

View File

@ -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()
}) })
}) })
}); })