update to use latest smartchai
This commit is contained in:
@ -15,7 +15,7 @@ let test2 = tap.test('should throw', async (tools) => {
|
||||
outsideArray.push(randomstring.generate(1000))
|
||||
})
|
||||
})
|
||||
expect(err).to.be.an.error()
|
||||
expect(err).to.be.instanceof(Error)
|
||||
})
|
||||
|
||||
tap.start()
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { tap, expect } from '../ts/index'
|
||||
|
||||
let test1 = tap.test('my first test -> expect true to be true', async () => {
|
||||
return expect(true).to.be.true()
|
||||
return expect(true).to.be.true
|
||||
})
|
||||
|
||||
let test2 = tap.test('my second test', async (tools) => {
|
||||
@ -9,13 +9,13 @@ let test2 = tap.test('my second test', async (tools) => {
|
||||
})
|
||||
|
||||
let test3 = tap.test('my third test -> test2 should take longer than test1 and endure at least 1000ms', async () => {
|
||||
expect((await test1).hrtMeasurement.milliSeconds < (await test2).hrtMeasurement.milliSeconds).to.be.true()
|
||||
expect((await test2).hrtMeasurement.milliSeconds > 1000).to.be.true()
|
||||
expect((await test1).hrtMeasurement.milliSeconds < (await test2).hrtMeasurement.milliSeconds).to.be.true
|
||||
expect((await test2).hrtMeasurement.milliSeconds > 1000).to.be.true
|
||||
})
|
||||
|
||||
let test4 = tap.skip.test('my 4th test -> should fail', async (tools) => {
|
||||
tools.allowFailure()
|
||||
expect(false).to.be.true()
|
||||
expect(false).to.be.true
|
||||
})
|
||||
|
||||
let test5 = tap.test('my 5th test -> should pass in about 500ms', async (tools) => {
|
||||
|
Reference in New Issue
Block a user