Change import to require in tests /2
This commit is contained in:
parent
d3fdab0bc0
commit
c01788855d
1 changed files with 2 additions and 1 deletions
|
|
@ -7,10 +7,11 @@ import test, {ExecutionContext} from 'ava';
|
|||
import {JSDOM} from 'jsdom';
|
||||
import {Subject, Observable} from 'rxjs';
|
||||
import ZenObservable from 'zen-observable';
|
||||
import is, {TypeName} = require('../source');
|
||||
import is = require('../source');
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
const URLGlobal = typeof URL === 'undefined' ? require('url').URL : URL;
|
||||
const {TypeName} = is;
|
||||
|
||||
const isNode10orHigher = Number(process.versions.node.split('.')[0]) >= 10;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue