Add is.observable

This commit is contained in:
Sam Verschueren 2018-05-02 22:13:49 +02:00
parent 7ae4b44ca2
commit 221ee1cb38
5 changed files with 36 additions and 2 deletions

View file

@ -5,6 +5,8 @@ import * as util from 'util';
import * as tempy from 'tempy';
import test, {TestContext, Context} from 'ava';
import {JSDOM} from 'jsdom';
import {Subject, Observable} from 'rxjs';
import ZenObservable from 'zen-observable';
import m from '..';
const isNode8orHigher = Number(process.versions.node.split('.')[0]) >= 8;
@ -321,6 +323,14 @@ const types = new Map<string, Test>([
new Stream.Writable()
]
}],
['observable', {
is: m.observable,
fixtures: [
new Observable(),
new Subject(),
new ZenObservable(() => {}) // tslint:disable-line:no-empty
]
}],
['infinite', {
is: m.infinite,
fixtures: [