Skip to content

Add unit tests for utils/platformDetect.ts #12

Description

@Newtdev

`packages/referral-web/src/utils/platformDetect.ts` has no test coverage. It's small (23 lines) and detects iOS/Android/desktop from the user agent — a good first look at the codebase.

Every other package (`referral-sdk-node`, `referral-sdk` PHP, `referral-mobile`) has real test coverage; `referral-web` currently has none. This is one of four issues opened to close that gap, one small file at a time.

Look at how the sibling packages structure their tests (e.g. `packages/referral-sdk-node/src/services/fingerprintMatcher.test.ts`) for the project's testing conventions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions