0.0.3 • Published 8 years ago
jasmine-vow v0.0.3
jasmine-vow
A solemn promise to Jasmine (Making jasmine promise testing great again)
Install
Get it from npm.
npm i jasmine-vow --save-devSetup
const vow = require('jasmine-vow');
vow(jasmine);Usage
Return your promies from it, beforeAll, afterAll, beforeEach and afterEach as you would expect it to work out of the box.
const vow = require('jasmine-vow');
vow(jasmine);
describe('test', () => {
beforeEach((/* NO DONE, IT MUST BE MAGIC */) => {
return doSomePromiseWork();
});
it('is true', () => {
return getSomeValue().then((value) => {
expect(value).toBeTruthy();
});
});
});License
ISC