0760cf4deb
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Lautzenheiser <lautzd@gmail.com>
19 lines
328 B
JavaScript
19 lines
328 B
JavaScript
if (typeof window === 'undefined') {
|
|
global.window = {
|
|
URL: {
|
|
createObjectURL: jest.fn(),
|
|
},
|
|
localStorage: {
|
|
removeItem: jest.fn(),
|
|
getItem: jest.fn(),
|
|
},
|
|
navigator: {
|
|
platform: 'Win',
|
|
},
|
|
};
|
|
}
|
|
|
|
global.URL.createObjectURL = jest.fn();
|
|
|
|
jest.mock('../src/formats/util/j-toml');
|