Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit 00d31f8

Browse files
author
Andy Wermke
committed
Add some types to test case
1 parent 9496210 commit 00d31f8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/sample.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import test from 'ava'
22

3-
test('1 + 2 = 3', t => {
4-
t.is(1 + 2, 3)
3+
function add (x: number, y: number): number {
4+
return x + y
5+
}
6+
7+
test('add(1, 2) = 3', t => {
8+
t.is(add(1, 2), 3)
59
})

0 commit comments

Comments
 (0)