Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(native): read the listener names as strings, so the appLinks case typechecks

Maurice35e0613986f8
diff --git a/client/src/native/nativeApp.test.ts b/client/src/native/nativeApp.test.ts
index 5cdd8c307..4541730b6 100644
--- a/client/src/native/nativeApp.test.ts
+++ b/client/src/native/nativeApp.test.ts
@@ -220,7 +220,7 @@ describe('startNativeApp', () => {
await vi.waitFor(() => expect(hasNativeFeature).toHaveBeenCalledWith('appLinks'));
await Promise.resolve();
expect(App.getLaunchUrl).not.toHaveBeenCalled();
- expect(vi.mocked(App.addListener).mock.calls.some(([name]) => name === 'appUrlOpen')).toBe(false);
+ expect(vi.mocked(App.addListener).mock.calls.map(([name]) => String(name))).not.toContain('appUrlOpen');
expect(openPushTarget).not.toHaveBeenCalled();
});