FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: add unit tests for isMacOS/isFirefox/isIOS by Jeniter · Pull Request #6850 · ChatGPTNextWeb/NextChat · GitHub

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 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL