summaryrefslogtreecommitdiff
path: root/spec/javascripts/environments
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-31 11:22:31 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-04-03 10:40:31 +0100
commitc4d4f4d8577ec3d8e728bc56b3811db33094dd61 (patch)
tree5cb8991810821eac21e5785a2bf8f8a115315e4b /spec/javascripts/environments
parent20b54b133c1714e6a2b0afbbf4c1770991e8e344 (diff)
downloadgitlab-ce-c4d4f4d8577ec3d8e728bc56b3811db33094dd61.tar.gz
Clean history after every test that changes history
Diffstat (limited to 'spec/javascripts/environments')
-rw-r--r--spec/javascripts/environments/environment_spec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/environments/environment_spec.js b/spec/javascripts/environments/environment_spec.js
index 9601575577e..9bcf617fcd8 100644
--- a/spec/javascripts/environments/environment_spec.js
+++ b/spec/javascripts/environments/environment_spec.js
@@ -91,6 +91,10 @@ describe('Environment', () => {
});
describe('pagination', () => {
+ afterEach(() => {
+ window.history.pushState({}, null, '');
+ });
+
it('should render pagination', (done) => {
setTimeout(() => {
expect(