mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
zjsunit: Remove pointless reassignment of ‘module’.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
cea7d713cd
commit
0423e6b7cc
@@ -63,9 +63,8 @@ global.stub_templates = handlebars.stub_templates;
|
||||
const noop = function () {};
|
||||
|
||||
// Set up fake module.hot
|
||||
// eslint-disable-next-line no-native-reassign
|
||||
module = require('module');
|
||||
module.prototype.hot = {
|
||||
const Module = require('module');
|
||||
Module.prototype.hot = {
|
||||
accept: noop,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user