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 Permalink Normal View History

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