From 19e4328a7b9f0bb27f4782ebd22cfadf9b07b0b5 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 28 Feb 2021 12:02:08 -0800 Subject: [PATCH] =?UTF-8?q?node=5Ftests:=20Don=E2=80=99t=20use=20this=20in?= =?UTF-8?q?=20=5F=5FesModule=20mock.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg --- frontend_tests/node_tests/narrow_activate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend_tests/node_tests/narrow_activate.js b/frontend_tests/node_tests/narrow_activate.js index 1192ba8cec..39407b9f7c 100644 --- a/frontend_tests/node_tests/narrow_activate.js +++ b/frontend_tests/node_tests/narrow_activate.js @@ -24,7 +24,7 @@ const message_fetch = {__esModule: true}; rewiremock("../../static/js/message_fetch").with(message_fetch); const message_list = set_global("message_list", { set_narrowed(value) { - this.narrowed = value; + message_list.narrowed = value; }, }); const message_scroll = {__esModule: true};