mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Add removeItem to localStorage mock in docs (#5919)
This commit is contained in:
committed by
Ian Sutherland
parent
013c8f2c73
commit
af0a854a6c
@@ -239,6 +239,7 @@ For example:
|
||||
const localStorageMock = {
|
||||
getItem: jest.fn(),
|
||||
setItem: jest.fn(),
|
||||
removeItem: jest.fn(),
|
||||
clear: jest.fn(),
|
||||
};
|
||||
global.localStorage = localStorageMock;
|
||||
|
||||
Reference in New Issue
Block a user