Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat-value-over-get-set
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed May 15, 2024
2 parents e9d4d51 + 3208959 commit 65e89f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/spec/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,15 @@ describe("router:", () => {
});

it("does not throw when browser pushes null state", () => {
window.history.pushState(null, "", "");
const state = window.history.state;
window.history.replaceState(null, "", "");
const rootView = host.views[0];
rootView.globalB = "value";

return resolveTimeout(() => {
expect(hybrids(host.views[0])).toBe(RootView);
expect(hybrids(host.children[0])).toBe(RootView);
window.history.replaceState(state, "", "");
});
});

Expand Down

0 comments on commit 65e89f1

Please sign in to comment.