Skip to content

test: add unit tests for isMacOS/isFirefox/isIOS#6850

Open
Jeniter wants to merge 1 commit into
mainfrom
test/platform-detection
Open

test: add unit tests for isMacOS/isFirefox/isIOS#6850
Jeniter wants to merge 1 commit into
mainfrom
test/platform-detection

Conversation

@Jeniter

@Jeniter Jeniter commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a focused unit-test file for the isMacOS / isFirefox / isIOS helpers in app/utils.ts.

Covered behaviour (driven by overriding navigator.userAgent, restored afterwards):

  • isMacOS true for a Macintosh UA, false otherwise
  • isIOS true for iPhone/iPad UAs, false otherwise
  • isFirefox true only for a Firefox UA

Notes

  • Additive only — no existing files are modified or removed.
  • yarn test:ci passes locally.

Part of a series of small QA-only PRs adding unit coverage for pure helpers.

Adds a small, focused, additive unit-test file (test/platform-detection.test.ts).
No existing files are modified or removed. yarn test:ci passes locally.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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