Rebase branch
This commit is contained in:
parent
89475f5a82
commit
b70b48d973
2 changed files with 0 additions and 17 deletions
|
|
@ -11,7 +11,6 @@ import ZenObservable from 'zen-observable';
|
|||
import m from '..';
|
||||
|
||||
const isNode8orHigher = Number(process.versions.node.split('.')[0]) >= 8;
|
||||
const isNode10orHigher = Number(process.versions.node.split('.')[0]) >= 10;
|
||||
|
||||
class PromiseSubclassFixture<T> extends Promise<T> {}
|
||||
class ErrorSubclassFixture extends Error {}
|
||||
|
|
@ -615,21 +614,6 @@ test('is.iterable', t => {
|
|||
t.false(m.iterable({}));
|
||||
});
|
||||
|
||||
if (isNode10orHigher) {
|
||||
test('is.asyncIterable', t => {
|
||||
t.true(m.asyncIterable({
|
||||
[Symbol.asyncIterator]: () => {} // tslint:disable-line:no-empty
|
||||
}));
|
||||
|
||||
t.false(m.asyncIterable(null));
|
||||
t.false(m.asyncIterable(undefined));
|
||||
t.false(m.asyncIterable(0));
|
||||
t.false(m.asyncIterable(NaN));
|
||||
t.false(m.asyncIterable(Infinity));
|
||||
t.false(m.asyncIterable({}));
|
||||
});
|
||||
}
|
||||
|
||||
test('is.class', t => {
|
||||
class Foo {} // tslint:disable-line
|
||||
const classDeclarations = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue