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 })