Commit 6ad01a49 authored by Mike Greiling's avatar Mike Greiling

rewrite test which relied on teaspoon quirk

parent 2ee2daa4
...@@ -42,9 +42,13 @@ require('~/lib/utils/common_utils'); ...@@ -42,9 +42,13 @@ require('~/lib/utils/common_utils');
}); });
describe('gl.utils.getParameterByName', () => { describe('gl.utils.getParameterByName', () => {
beforeEach(() => {
window.history.pushState({}, null, '?scope=all&p=2');
});
it('should return valid parameter', () => { it('should return valid parameter', () => {
const value = gl.utils.getParameterByName('reporter'); const value = gl.utils.getParameterByName('scope');
expect(value).toBe('Console'); expect(value).toBe('all');
}); });
it('should return invalid parameter', () => { it('should return invalid parameter', () => {
......
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