UNPKG

expected-kefir

Version:

This is a universal library for testing observables from [KefirJS](https://github.com/kefirjs/kefir).

14 lines (11 loc) 297 B
var { expect } = require('expected-kefir'); var kefir = require('kefir'); describe('samle test', function () { it(`works`, function () { expect(kefir .constant([1, 2, 3, 4]) .flatten() .map(n => n * 2)) .toEmit([2, 4, 6, 8]) }) })