Skip to content

Commit af0a854

Browse files
phacksiansu
authored andcommitted
Add removeItem to localStorage mock in docs (#5919)
1 parent 013c8f2 commit af0a854

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docusaurus/docs/running-tests.md

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ For example:
239239
const localStorageMock = {
240240
getItem: jest.fn(),
241241
setItem: jest.fn(),
242+
removeItem: jest.fn(),
242243
clear: jest.fn(),
243244
};
244245
global.localStorage = localStorageMock;

0 commit comments

Comments
 (0)