Skip to content

Commit 3c09692

Browse files
committed
CR: mocked createObjectURL clarification
1 parent 53d7b73 commit 3c09692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jest-setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function parseUrl(
104104
}
105105

106106
if (typeof window.URL.createObjectURL === 'undefined') {
107-
window.URL.createObjectURL = (): string => 'kjkj';
107+
window.URL.createObjectURL = () => `blob:https://mocked-create-object-url.com/${Math.random()}`;
108108
window.URL.revokeObjectURL = () => {};
109109
}
110110

0 commit comments

Comments
 (0)