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
2018-02-27 22:38:40 +01:00

14 lines
322 B
TypeScript

import * as smartchai from '../ts/index'
import * as smartq from 'smartq'
let asyncWrapper = async () => {
smartchai.expect('hi there').to.startWith('hi')
let deferred = smartq.defer()
smartchai.expect(deferred.promise).to.eventually.be.null
deferred.resolve(null)
}
asyncWrapper().catch(err => {
throw err
})