mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user