Compare commits

..

2 Commits

Author SHA1 Message Date
f60f17f91e 2.0.9 2017-10-12 23:02:03 +02:00
d154cf0d0f ensure compatibility with code assertion library 2017-10-12 23:02:00 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "smartcli", "name": "smartcli",
"version": "2.0.8", "version": "2.0.9",
"description": "nodejs wrapper for CLI related tasks", "description": "nodejs wrapper for CLI related tasks",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@ -11,7 +11,7 @@ tap.test('should create a new Smartcli', async () => {
}) })
tap.test('should add an command', async () => { tap.test('should add an command', async () => {
expect(smartCliTestObject.addCommand('awesome')).to.not.throw() expect(smartCliTestObject.addCommand('awesome')).to.be.instanceOf(Promise)
}) })
tap.test('should start parsing a standardTask', async () => { tap.test('should start parsing a standardTask', async () => {
@ -39,7 +39,7 @@ tap.test('should execute when triggered', async () => {
tap.test('should start parsing the CLI input', async () => { tap.test('should start parsing the CLI input', async () => {
smartCliTestObject.startParse() smartCliTestObject.startParse()
expect(await smartCliTestObject.parseStarted.promise).to.not.throw() expect(smartCliTestObject.parseStarted.promise).to.be.instanceOf(Promise)
}) })
tap.start() tap.start()