update ci and switch to code

This commit is contained in:
2017-10-09 16:43:31 +02:00
parent 2e841e2792
commit 74745e2c25
9 changed files with 208 additions and 106 deletions

View File

@ -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==

View File

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