Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Fix misleading negative test.
Steve Howell1a56d87694e9
diff --git a/frontend_tests/node_tests/pm_list.js b/frontend_tests/node_tests/pm_list.jsindex 478d70a82f8..d958b00ecbe 100644--- a/frontend_tests/node_tests/pm_list.js+++ b/frontend_tests/node_tests/pm_list.js@@ -2,7 +2,7 @@const {strict: assert} = require("assert");-const {mock_esm, with_field_rewire, zrequire} = require("../zjsunit/namespace");+const {mock_esm, with_field, zrequire} = require("../zjsunit/namespace");const {run_test} = require("../zjsunit/test");const $ = require("../zjsunit/zjquery");@@ -268,11 +268,11 @@ test("ensure coverage", ({override}) => {// where functions early exit.override(narrow_state, "active", () => false);- with_field_rewire(- pm_list,- "rebuild_recent",+ with_field(+ vdom,+ "update",() => {- throw new Error("we should not call rebuild_recent");+ throw new Error("we should not update the dom");},() => {pm_list.update_private_messages();