jasmine-es6-generator
babel · es6 · generator · jasmine · javascript · matcher · unit testing

jasmine-es6-generator Build Status

Evaluate generators in Jasmine unit tests suits. Brings ES6 style for async unit tests

Usage

var testGen = require('jasmine-es6-generator');

it('should done', testGen(function *() {
    var res = yield someFn();
    expect(res).toEqual(1234);
}));

More

others Jasmine matchers and extensions