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');
});
describe('gl.utils.getParameterByName', () => {
beforeEach(() => {
window.history.pushState({}, null, '?scope=all&p=2');
});
it('should return valid parameter', () => {
const value = gl.utils.getParameterByName('reporter');
expect(value).toBe('Console');
const value = gl.utils.getParameterByName('scope');
expect(value).toBe('all');
});
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