fix: Compatible with node low version test
This commit is contained in:
parent
6016c3b7b1
commit
781d891939
4 changed files with 82 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ import {JSDOM} from 'jsdom';
|
|||
import {Subject, Observable} from 'rxjs';
|
||||
import tempy = require('tempy');
|
||||
import ZenObservable = require('zen-observable');
|
||||
import {WeakRef} from '@ungap/weakrefs'
|
||||
import is, {assert, AssertionTypeDescription, Primitive, TypedArray, TypeName} from '../source';
|
||||
|
||||
class PromiseSubclassFixture<T> extends Promise<T> {}
|
||||
|
|
@ -339,7 +340,7 @@ const types = new Map<string, Test>([
|
|||
is: is.weakRef,
|
||||
assert: assert.weakRef,
|
||||
fixtures: [
|
||||
new window.WeakRef({})
|
||||
window.WeakRef ? new window.WeakRef({}) : new WeakRef({})
|
||||
],
|
||||
typename: 'WeakRef'
|
||||
}],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue