renovate[bot] 0760cf4deb
fix(deps): update dependency ajv to v8.12.0 (#297)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Lautzenheiser <lautzd@gmail.com>
2023-01-03 12:08:42 -05:00

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');