Commit 20b54b13 authored by Filipa Lacerda's avatar Filipa Lacerda

Clean history state after each test

parent 76b2fa3e
......@@ -263,7 +263,12 @@ require('~/lib/utils/common_utils');
});
describe('gl.utils.setParamInURL', () => {
afterEach(() => {
window.history.pushState({}, null, '');
});
it('should return the parameter', () => {
window.history.pushState({}, null, '');
expect(gl.utils.setParamInURL('page', 156)).toBe('?page=156');
expect(gl.utils.setParamInURL('page', '156')).toBe('?page=156');
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment