update ci and switch to code
This commit is contained in:
@ -1,9 +0,0 @@
|
||||
"use strict";
|
||||
require("typings-test");
|
||||
const smartchai = require("../dist/index");
|
||||
describe('smartchai', function () {
|
||||
it('should have typings in place', function () {
|
||||
smartchai.expect('hi there').to.startsWith('hi');
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQiwyQ0FBMEM7QUFFMUMsUUFBUSxDQUFDLFdBQVcsRUFBRTtJQUNwQixFQUFFLENBQUMsOEJBQThCLEVBQUU7UUFDakMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQyxFQUFFLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQ2xELENBQUMsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFDLENBQUEifQ==
|
17
test/test.ts
17
test/test.ts
@ -1,8 +1,13 @@
|
||||
import 'typings-test'
|
||||
import * as smartchai from '../dist/index'
|
||||
import * as smartchai from '../ts/index'
|
||||
import * as smartq from 'smartq'
|
||||
|
||||
smartchai.expect('hi there').to.startWith('hi')
|
||||
let deferred = smartq.defer()
|
||||
smartchai.expect(deferred.promise).to.eventually.be.null
|
||||
deferred.resolve(null)
|
||||
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
|
||||
})
|
||||
|
Reference in New Issue
Block a user