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.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
test(native): fix the sign-in handoff tests' quoting and formatting
Maurice8dd2e9716d35
diff --git a/client/src/native/browserSignIn.test.ts b/client/src/native/browserSignIn.test.tsindex 817809a66..4e9dfaa5f 100644--- a/client/src/native/browserSignIn.test.ts+++ b/client/src/native/browserSignIn.test.ts@@ -47,7 +47,9 @@ describe('handoffUrl', () => {it('starts at the server page in front of the hand-off page, with the challenge and an optional start', () => {// Under /api, which every TREK service worker passes to the server: an older// version's worker must not answer the hand-off page from its cache.- expect(handoffUrl('https://trek.example.com', 'c')).toBe('https://trek.example.com/api/auth/native/start?challenge=c');+ expect(handoffUrl('https://trek.example.com', 'c')).toBe(+ 'https://trek.example.com/api/auth/native/start?challenge=c'+ );expect(handoffUrl('https://trek.example.com', 'c', 'oidc')).toBe('https://trek.example.com/api/auth/native/start?challenge=c&start=oidc');diff --git a/client/src/native/browserSignInFlag.test.ts b/client/src/native/browserSignInFlag.test.tsindex 6cae3d74c..a4b30cf3d 100644--- a/client/src/native/browserSignInFlag.test.ts+++ b/client/src/native/browserSignInFlag.test.ts@@ -1,5 +1,10 @@import { afterEach, describe, expect, it } from 'vitest';-import { BROWSER_SIGN_IN_KEY, BROWSER_SIGN_IN_TTL_MS, browserSignInRunning, endBrowserSignIn } from './browserSignInFlag';+import {+ BROWSER_SIGN_IN_KEY,+ BROWSER_SIGN_IN_TTL_MS,+ browserSignInRunning,+ endBrowserSignIn,+} from './browserSignInFlag';afterEach(() => localStorage.clear());diff --git a/client/src/utils/versionHandover.test.ts b/client/src/utils/versionHandover.test.tsindex fd4f37a7c..2cf25b3f2 100644--- a/client/src/utils/versionHandover.test.ts+++ b/client/src/utils/versionHandover.test.ts@@ -447,7 +447,7 @@ describe('reconcileAppVersion: a page loaded past an older worker', () => {})})-describe('reconcileAppVersion: during the app's sign-in in the browser', () => {+describe("reconcileAppVersion: during the app's sign-in in the browser", () => {it('FE-UTIL-VERSION-058: leaves version and page alone while the sign-in runs, and acts again after it', async () => {const { container } = installWorker(null)container.getRegistration.mockResolvedValue(undefined)diff --git a/server/tests/unit/nest/native-auth.controller.test.ts b/server/tests/unit/nest/native-auth.controller.test.tsindex 2060ef015..9cc267615 100644--- a/server/tests/unit/nest/native-auth.controller.test.ts+++ b/server/tests/unit/nest/native-auth.controller.test.ts@@ -140,7 +140,9 @@ describe('NativeAuthController.start', () => {it('NATIVE-CTL-009: the page loads the forwarding script from the server and escapes the target', () => {const page = nativeStartPage('/native-handoff?challenge=a&start=oidc');- expect(page).toContain('<script src="/native-handoff.js" data-target="/native-handoff?challenge=a&start=oidc"></script>');+ expect(page).toContain(+ '<script src="/native-handoff.js" data-target="/native-handoff?challenge=a&start=oidc"></script>',+ );expect(page).toContain('<meta http-equiv="refresh" content="0;url=/native-handoff?challenge=a&start=oidc">');expect(nativeStartPage('/native-handoff?x="<>')).not.toMatch(/"<>/);});