Skip to content

Commit 51bbff6

Browse files
author
Johan Borestad
committed
bump
1 parent ce6ef16 commit 51bbff6

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"concurrency": 5,
5454
"failFast": true,
5555
"tap": false,
56-
"powerAssert": false,
56+
"powerAssert": true,
5757
"require": [
5858
"ts-node/register"
5959
]

src/index.test.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import * as x from './'
22
import test from 'ava'
33

4+
test('ava: pass()', t => {
5+
t.pass()
6+
})
7+
8+
test('ava: fail()', t => {
9+
10+
})
11+
412
test('should resolve async methods', async t => {
513
t.plan(1)
614
const bar = Promise.resolve('bar')
@@ -35,11 +43,9 @@ test('GenericsExample1 - #1 - Using strings', t => {
3543
)
3644
})
3745

46+
// Using Power Assert Style
3847
test('GenericsExample1 - #2 - Using numbers', t => {
3948
const gen1 = new x.GenericsExample1<number>()
4049
gen1.setValue(2.00)
41-
t.is(
42-
gen1.getValue().valueOf(),
43-
2
44-
)
50+
t.true(2 === gen1.getValue().valueOf())
4551
})

0 commit comments

Comments
 (0)