From 9c3f526faea993a0d61d6025ce3b8c9560f39fcd Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 13 Mar 2021 15:54:47 +0000 Subject: [PATCH] node tests: Explicitly set hash for billing test. --- frontend_tests/node_tests/billing_helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend_tests/node_tests/billing_helpers.js b/frontend_tests/node_tests/billing_helpers.js index 07c57e1429..bb2705838e 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);