Add removeItem to localStorage mock in docs (#5919)

This commit is contained in:
Nicolas Goutay
2018-12-05 23:41:58 +01:00
committed by Ian Sutherland
parent 013c8f2c73
commit af0a854a6c

View File

@@ -239,6 +239,7 @@ For example:
const localStorageMock = {
getItem: jest.fn(),
setItem: jest.fn(),
removeItem: jest.fn(),
clear: jest.fn(),
};
global.localStorage = localStorageMock;