Make tests run again, use tape instead of ava

This commit is contained in:
Dan Rosén 2018-02-28 10:07:09 +01:00
parent 9ac5a6bb12
commit a7d180c4dc
4 changed files with 216 additions and 2164 deletions

View file

@ -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 => {