FIX: Clear `sessionStorage` between click track tests
This commit is contained in:
parent
1d478a97db
commit
a4b658920e
|
@ -8,13 +8,14 @@ var windowOpen,
|
|||
|
||||
module("lib:click-track", {
|
||||
setup: function() {
|
||||
|
||||
// Prevent any of these tests from navigating away
|
||||
win = {focus: function() { } };
|
||||
redirectTo = sandbox.stub(DiscourseURL, "redirectTo");
|
||||
windowOpen = sandbox.stub(window, "open").returns(win);
|
||||
sandbox.stub(win, "focus");
|
||||
|
||||
sessionStorage.clear();
|
||||
|
||||
fixture().html(
|
||||
`<div id="topic" data-topic-id="1337">
|
||||
<article data-post-id="42" data-user-id="3141">
|
||||
|
|
Loading…
Reference in New Issue