test: common: util: get rid of mock-require

This commit is contained in:
coderiaser 2026-01-12 13:10:05 +02:00
parent 53f6f9e76f
commit fb115c675e

View file

@ -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();
});