fix: media popup (#225)
This commit is contained in:
committed by
GitHub
parent
c1ae2a1bcc
commit
6602f37495
@ -1,6 +1,3 @@
|
||||
global.TextEncoder = TextEncoder;
|
||||
global.TextDecoder = TextDecoder;
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
global.window = {
|
||||
URL: {
|
||||
@ -15,3 +12,5 @@ if (typeof window === 'undefined') {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
global.URL.createObjectURL = jest.fn();
|
||||
|
Reference in New Issue
Block a user