From a4b658920ed12e00da952994c9582e414986cc2e Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 27 Mar 2017 16:16:14 -0400 Subject: [PATCH] FIX: Clear `sessionStorage` between click track tests --- test/javascripts/lib/click-track-test.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/javascripts/lib/click-track-test.js.es6 b/test/javascripts/lib/click-track-test.js.es6 index dfe4f83c3a2..cb05ba7e565 100644 --- a/test/javascripts/lib/click-track-test.js.es6 +++ b/test/javascripts/lib/click-track-test.js.es6 @@ -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( `