Make tests run again, use tape instead of ava
This commit is contained in:
parent
9ac5a6bb12
commit
a7d180c4dc
4 changed files with 216 additions and 2164 deletions
11
test/test.ts
11
test/test.ts
|
@ -1,5 +1,5 @@
|
|||
import * as main from '../src/main'
|
||||
import test from 'ava'
|
||||
import * as test from 'tape'
|
||||
|
||||
test('tests', t => {
|
||||
t.plan(1)
|
||||
|
@ -35,8 +35,6 @@ test('tests', t => {
|
|||
)
|
||||
})
|
||||
|
||||
|
||||
|
||||
const c = (comment: string, context: string | null) => ({comment, context})
|
||||
|
||||
test('modules and namespace', t => {
|
||||
|
@ -108,12 +106,7 @@ test('class', t => {
|
|||
p: Array<number>
|
||||
}
|
||||
`)
|
||||
t.deepEqual(cs, [
|
||||
c('C ', 'C'),
|
||||
c('constructor ', 'constructor'),
|
||||
c('m ', 'm'),
|
||||
c('p ', 'p'),
|
||||
])
|
||||
t.deepEqual(cs, [c('C ', 'C'), c('constructor ', 'constructor'), c('m ', 'm'), c('p ', 'p')])
|
||||
})
|
||||
|
||||
test('interface', t => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue