0.0.3 • Published 6 years ago

jasmine-vow v0.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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