From d154cf0d0f3283edb4b94047f99ec6f27e5f967d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 12 Oct 2017 23:02:00 +0200 Subject: [PATCH] ensure compatibility with code assertion library --- test/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.ts b/test/test.ts index cc4bb30..fd97e3d 100644 --- a/test/test.ts +++ b/test/test.ts @@ -11,7 +11,7 @@ tap.test('should create a new Smartcli', 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 () => { @@ -39,7 +39,7 @@ tap.test('should execute when triggered', async () => { tap.test('should start parsing the CLI input', async () => { smartCliTestObject.startParse() - expect(await smartCliTestObject.parseStarted.promise).to.not.throw() + expect(smartCliTestObject.parseStarted.promise).to.be.instanceOf(Promise) }) tap.start()