summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Rauh <steffen.rauh@gmx.de>2016-12-05 11:00:19 +0100
committerSteffen Rauh <steffen.rauh@gmx.de>2016-12-05 11:00:19 +0100
commit4efdbdb266ae15e1effb768b5fea7ee3d0027e66 (patch)
treeec94829ee38b4e3df4fb3cdcc0b1d9ac97bd5a12
parent0d53e97ee80be012d4b486092098333a0185c69b (diff)
downloadgitlab-ce-4efdbdb266ae15e1effb768b5fea7ee3d0027e66.tar.gz
Fixed influence from other specs.
-rw-r--r--spec/javascripts/bootstrap_linked_tabs_spec.js.es64
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/bootstrap_linked_tabs_spec.js.es6 b/spec/javascripts/bootstrap_linked_tabs_spec.js.es6
index 9aa3c50611d..133712debab 100644
--- a/spec/javascripts/bootstrap_linked_tabs_spec.js.es6
+++ b/spec/javascripts/bootstrap_linked_tabs_spec.js.es6
@@ -9,6 +9,10 @@
});
describe('when is initialized', () => {
+ beforeEach(() => {
+ spyOn(window.history, 'replaceState').and.callFake(function () {});
+ });
+
it('should activate the tab correspondent to the given action', () => {
const linkedTabs = new window.gl.LinkedTabs({ // eslint-disable-line
action: 'tab1',