diff options
Diffstat (limited to 'spec/frontend/helpers/set_window_location_helper_spec.js')
-rw-r--r-- | spec/frontend/helpers/set_window_location_helper_spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/frontend/helpers/set_window_location_helper_spec.js b/spec/frontend/helpers/set_window_location_helper_spec.js index 2a2c024c824..da609b6bbf0 100644 --- a/spec/frontend/helpers/set_window_location_helper_spec.js +++ b/spec/frontend/helpers/set_window_location_helper_spec.js @@ -33,7 +33,7 @@ describe('setWindowLocation', () => { it.each([null, 1, undefined, false, '', 'gitlab.com'])( 'throws an error when called with an invalid url: "%s"', invalidUrl => { - expect(() => setWindowLocation(invalidUrl)).toThrow(new TypeError('Invalid URL')); + expect(() => setWindowLocation(invalidUrl)).toThrow(/Invalid URL/); expect(window.location).toBe(originalLocation); }, ); |