Commit 81559676 authored by Winnie Hellmann's avatar Winnie Hellmann

Move is_safe_url_spec.js to Jest

parent e760abdb
......@@ -62,7 +62,7 @@ describe('isSafeUrl', () => {
describe('without URL constructor support', () => {
beforeEach(() => {
spyOn(window, 'URL').and.callFake(() => {
jest.spyOn(window, 'URL').mockImplementation(() => {
throw new Error('No URL support');
});
});
......
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