Jared K. Smith 5c09baf
import test from 'ava';
Jared K. Smith 5c09baf
import zenObservable from 'zen-observable';
Jared K. Smith 5c09baf
import fn from './';
Jared K. Smith 5c09baf
Jared K. Smith 5c09baf
// for `zen-observable` on Node.js 0.10
Jared K. Smith 5c09baf
global.Promise = Promise;
Jared K. Smith 5c09baf
Jared K. Smith 5c09baf
test(t => {
Jared K. Smith 5c09baf
	t.true(fn(zenObservable.of(1, 2)));
Jared K. Smith 5c09baf
	t.false(fn(null));
Jared K. Smith 5c09baf
	t.false(fn({foo: true}));
Jared K. Smith 5c09baf
	t.false(fn(function () {}));
Jared K. Smith 5c09baf
	t.end();
Jared K. Smith 5c09baf
});