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
319 B
TypeScript
Raw 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()
smartchai.expect(await deferred.promise).to.be.null()
deferred.resolve(null)
}
asyncWrapper().catch(err => {
throw err
})