Skip to content

Commit

Permalink
Add removeItem to localStorage mock in docs (#5919)
Browse files Browse the repository at this point in the history
  • Loading branch information
phacks authored and iansu committed Dec 5, 2018
1 parent 013c8f2 commit af0a854
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docusaurus/docs/running-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ For example:
const localStorageMock = {
getItem: jest.fn(),
setItem: jest.fn(),
removeItem: jest.fn(),
clear: jest.fn(),
};
global.localStorage = localStorageMock;
Expand Down

0 comments on commit af0a854

Please sign in to comment.