From fb115c675e46b9b8fe8e9c8d6ac7901d204a7974 Mon Sep 17 00:00:00 2001 From: coderiaser Date: Mon, 12 Jan 2026 13:10:05 +0200 Subject: [PATCH] test: common: util: get rid of mock-require --- common/util.spec.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/common/util.spec.js b/common/util.spec.js index f035f392..bf3bb78f 100644 --- a/common/util.spec.js +++ b/common/util.spec.js @@ -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(); -});