mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test: common: util: get rid of mock-require
This commit is contained in:
parent
53f6f9e76f
commit
fb115c675e
1 changed files with 0 additions and 12 deletions
|
|
@ -1,7 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
const test = require('supertape');
|
||||
const {reRequire} = require('mock-require');
|
||||
const {tryCatch} = require('try-catch');
|
||||
const Util = require('./util');
|
||||
|
||||
|
|
@ -118,14 +117,3 @@ test('util: escapeRegExp', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('util: scope', (t) => {
|
||||
globalThis.window = {};
|
||||
|
||||
reRequire('./util');
|
||||
|
||||
t.pass('should set window in scope');
|
||||
|
||||
delete globalThis.window;
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue