11 lines
185 B
JavaScript
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;
|