zeroframework/Web/ZeroFramework.DeviceCenter.Web/tests/setupTests.js
2023-12-05 17:22:48 +08:00

11 lines
185 B
JavaScript

// do some test init
const localStorageMock = {
getItem: jest.fn(),
setItem: jest.fn(),
removeItem: jest.fn(),
clear: jest.fn(),
};
global.localStorage = localStorageMock;