zeroframework/Web/ZeroFramework.DeviceCenter.Web/tests/setupTests.js

11 lines
185 B
JavaScript
Raw Normal View History

2023-12-05 09:22:48 +00:00
// do some test init
const localStorageMock = {
getItem: jest.fn(),
setItem: jest.fn(),
removeItem: jest.fn(),
clear: jest.fn(),
};
global.localStorage = localStorageMock;