Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSteffen Rauh <steffen.rauh@gmx.de>2016-12-05 13:00:19 +0300
committerSteffen Rauh <steffen.rauh@gmx.de>2016-12-05 13:00:19 +0300
commit4efdbdb266ae15e1effb768b5fea7ee3d0027e66 (patch)
treeec94829ee38b4e3df4fb3cdcc0b1d9ac97bd5a12 /spec
parent0d53e97ee80be012d4b486092098333a0185c69b (diff)
Fixed influence from other specs.
Diffstat (limited to 'spec')
-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',