node tests: Explicitly set hash for billing test.

This commit is contained in:
Steve Howell 2021-03-13 15:54:47 +00:00 committed by Steve Howell
parent fbd3669461
commit 9c3f526fae
1 changed files with 2 additions and 1 deletions

View File

@ -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);