From c4d4f4d8577ec3d8e728bc56b3811db33094dd61 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 31 Mar 2017 11:22:31 +0100 Subject: Clean history after every test that changes history --- spec/javascripts/vue_shared/components/table_pagination_spec.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/javascripts/vue_shared') 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'); -- cgit v1.2.3