diff --git a/package.json b/package.json index 8cc7f67..03df323 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "concurrency": 5, "failFast": true, "tap": false, - "powerAssert": false, + "powerAssert": true, "require": [ "ts-node/register" ] diff --git a/src/index.test.ts b/src/index.test.ts index 94382f6..66c4057 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1,6 +1,14 @@ import * as x from './' import test from 'ava' +test('ava: pass()', t => { + t.pass() +}) + +test('ava: fail()', t => { + +}) + test('should resolve async methods', async t => { t.plan(1) const bar = Promise.resolve('bar') @@ -35,11 +43,9 @@ test('GenericsExample1 - #1 - Using strings', t => { ) }) +// Using Power Assert Style test('GenericsExample1 - #2 - Using numbers', t => { const gen1 = new x.GenericsExample1() gen1.setValue(2.00) - t.is( - gen1.getValue().valueOf(), - 2 - ) + t.true(2 === gen1.getValue().valueOf()) })