Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Borestad committed Dec 22, 2016
1 parent ce6ef16 commit 51bbff6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"concurrency": 5,
"failFast": true,
"tap": false,
"powerAssert": false,
"powerAssert": true,
"require": [
"ts-node/register"
]
Expand Down
14 changes: 10 additions & 4 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand Down Expand Up @@ -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<number>()
gen1.setValue(2.00)
t.is(
gen1.getValue().valueOf(),
2
)
t.true(2 === gen1.getValue().valueOf())
})

1 comment on commit 51bbff6

@borestad
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests from smartgit

Please sign in to comment.