Skip to content

test: Fixed unit tests failing locally becuase of missing localStorage.#1139

Closed
allansson wants to merge 1 commit intomainfrom
fix/failing-tests-for-userecenturls
Closed

test: Fixed unit tests failing locally becuase of missing localStorage.#1139
allansson wants to merge 1 commit intomainfrom
fix/failing-tests-for-userecenturls

Conversation

@allansson
Copy link
Copy Markdown
Collaborator

@allansson allansson commented Mar 27, 2026

Description

Tests were failing for me locally after merging the useRecentURLs PR. The reason was that localStorage was not available. This PR adds a stub for localStorage.

How to Test

Run the test suite using npm run test.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@allansson allansson changed the title tests: Fixed unit tests failing locally becuase of missing localStorage. test: Fixed unit tests failing locally becuase of missing localStorage. Mar 27, 2026
@allansson allansson closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant