This repository has been archived on 2024-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
smartchai/test/test.ts

14 lines
322 B
TypeScript
Raw Normal View History

2017-10-09 16:43:31 +02:00
import * as smartchai from '../ts/index'
2017-05-01 22:45:51 +02:00
import * as smartq from 'smartq'
2017-02-19 03:18:25 +01:00
2017-10-09 16:43:31 +02:00
let asyncWrapper = async () => {
smartchai.expect('hi there').to.startWith('hi')
let deferred = smartq.defer()
2018-02-27 22:38:40 +01:00
smartchai.expect(deferred.promise).to.eventually.be.null
2017-10-09 16:43:31 +02:00
deferred.resolve(null)
}
asyncWrapper().catch(err => {
throw err
})