Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

SettingsRouteScreen.logic.test.ts

19 lines627 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { resolveAgentAwarenessPlatformPresentation } from "./SettingsRouteScreen.logic";
4​
5describe("resolveAgentAwarenessPlatformPresentation", () => {
6 it("explains that agent awareness settings are unavailable on Android", () => {
7 expect(resolveAgentAwarenessPlatformPresentation("android")).toEqual({
8 supported: false,
9 subtitle: "iOS only",
10 });
11 });
12​
13 it("leaves supported iOS settings unchanged", () => {
14 expect(resolveAgentAwarenessPlatformPresentation("ios")).toEqual({
15 supported: true,
16 subtitle: undefined,
17 });
18 });
19});