jasmine-vow
v0.0.3
Published
A solemn promise to Jasmine (Making jasmine promise testing great again)
Downloads
20
Maintainers
Readme
jasmine-vow
A solemn promise to Jasmine (Making jasmine promise testing great again)
Install
Get it from npm.
npm i jasmine-vow --save-dev
Setup
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