Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Prevent theoretical leak from Intl.
Steve Howell8a210923e1f4
diff --git a/frontend_tests/node_tests/util.js b/frontend_tests/node_tests/util.jsindex 5f8bfd10d51..2337a97cbd3 100644--- a/frontend_tests/node_tests/util.js+++ b/frontend_tests/node_tests/util.js@@ -117,11 +117,12 @@ run_test("robust_uri_decode", () => {});run_test("dumb_strcmp", () => {- Intl.Collator = undefined;- const strcmp = util.make_strcmp();- assert.equal(strcmp("a", "b"), -1);- assert.equal(strcmp("c", "c"), 0);- assert.equal(strcmp("z", "y"), 1);+ with_field(Intl, "Collator", undefined, () => {+ const strcmp = util.make_strcmp();+ assert.equal(strcmp("a", "b"), -1);+ assert.equal(strcmp("c", "c"), 0);+ assert.equal(strcmp("z", "y"), 1);+ });});run_test("get_edit_event_orig_topic", () => {