jasmine-vow

0.0.3 • Public • Published

jasmine-vow

npm version Build Status

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

Package Sidebar

Install

npm i jasmine-vow

Weekly Downloads

47

Version

0.0.3

License

ISC

Unpacked Size

8.74 kB

Total Files

12

Last publish

Collaborators

  • agirorn