test(maps): add buildUserAgent to the mapsService mock

transitService imports it at module load, and the full-app integration boot
now pulls the transit module in — the factory mock lacked the export.
This commit is contained in:
Maurice
2026-07-02 17:45:14 +02:00
committed by Maurice
parent 216d5e99e1
commit f2304e076b
+2
View File
@@ -57,6 +57,8 @@ vi.mock('../../src/services/mapsService', () => ({
resolveGoogleMapsUrl: vi.fn().mockRejectedValue(
Object.assign(new Error('SSRF or invalid URL'), { status: 400 })
),
// Imported at module load by transitService (pulled in via app.module).
buildUserAgent: () => 'TREK-Test-UA',
}));
import { buildApp } from '../../src/bootstrap';