diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-31 13:22:31 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-04-03 12:40:31 +0300 |
commit | c4d4f4d8577ec3d8e728bc56b3811db33094dd61 (patch) | |
tree | 5cb8991810821eac21e5785a2bf8f8a115315e4b /spec/javascripts/vue_shared | |
parent | 20b54b133c1714e6a2b0afbbf4c1770991e8e344 (diff) |
Clean history after every test that changes history
Diffstat (limited to 'spec/javascripts/vue_shared')
-rw-r--r-- | spec/javascripts/vue_shared/components/table_pagination_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/vue_shared/components/table_pagination_spec.js b/spec/javascripts/vue_shared/components/table_pagination_spec.js index d1640ffed99..96038718191 100644 --- a/spec/javascripts/vue_shared/components/table_pagination_spec.js +++ b/spec/javascripts/vue_shared/components/table_pagination_spec.js @@ -124,6 +124,10 @@ describe('Pagination component', () => { }); describe('paramHelper', () => { + afterEach(() => { + window.history.pushState({}, null, ''); + }); + it('can parse url parameters correctly', () => { window.history.pushState({}, null, '?scope=all&p=2'); |