diff options
author | Steffen Rauh <steffen.rauh@gmx.de> | 2016-12-05 13:00:19 +0300 |
---|---|---|
committer | Steffen Rauh <steffen.rauh@gmx.de> | 2016-12-05 13:00:19 +0300 |
commit | 4efdbdb266ae15e1effb768b5fea7ee3d0027e66 (patch) | |
tree | ec94829ee38b4e3df4fb3cdcc0b1d9ac97bd5a12 /spec | |
parent | 0d53e97ee80be012d4b486092098333a0185c69b (diff) |
Fixed influence from other specs.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/bootstrap_linked_tabs_spec.js.es6 | 4 |
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', |