Skip to content

Commit

Permalink
test(fix): update mockLocalStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Jan 17, 2024
1 parent 975ef25 commit 3a0c975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/testing/mockLocalStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function mockLocalStorage() {
store = {};

function getItem(key) {
return store[key];
return store[key] || null;
}

function setItem(key, value) {
Expand Down

0 comments on commit 3a0c975

Please sign in to comment.