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

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