Created by: tannerkrewson
I tried to use this code example to mock the localStorage in a unit test. I was getting a "not a mock error", so I eventually ended up doing a console.log(localStorageMock == global.localStorage)
directly after the line I removed in this PR, and it would return false. With this fix, it returns true and my tests are working.