Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

node tests: Explicitly set hash for billing test.

Steve Howell9c3f526faea9
diff --git a/frontend_tests/node_tests/billing_helpers.js b/frontend_tests/node_tests/billing_helpers.js
index 07c57e14290..bb2705838e9 100644
--- a/frontend_tests/node_tests/billing_helpers.js
+++ b/frontend_tests/node_tests/billing_helpers.js
@@ -22,7 +22,7 @@ const loading = mock_esm("../../static/js/loading");
set_global("document", {
title: "Zulip",
});
-set_global("location", {
+const location = set_global("location", {
pathname: "/upgrade/",
search: "",
hash: "#billing",
@@ -276,6 +276,7 @@ run_test("set_tab", () => {
hash_change_handler = handler;
};
+ location.hash = "#billing";
helpers.set_tab("upgrade");
assert.equal(state.show_tab_billing, 1);
assert.equal(state.scrollTop, 1);