Trek_CN/server/tests/unit/services
Maurice aa91f009ad fix(costs): freeze the FX rate so settled expenses don't reopen when rates drift (#1335)
Settle-up transfers are stored as fixed amounts, but a foreign-currency expense was re-converted with live rates on every settlement calc. When the rate drifted, the fixed transfer no longer cancelled the re-valued expense and a few-cent residual re-opened the settled position. Foreign-currency expenses now freeze the live rate at entry time into the existing budget_items.exchange_rate column, and the settlement converts with that frozen rate when working in the trip currency. Legacy rows (exchange_rate = 1) keep using live rates, so historical data is unchanged until re-edited; rate fetch failures fall back to live rates.
2026-06-27 20:14:52 +02:00
..
adminService.test.ts fix(tests): update tests for granular auth toggles 2026-04-11 20:33:51 +02:00
airtrailMapper.test.ts fix(airtrail): import the airline name, not the ICAO code (#1334) 2026-06-27 20:14:52 +02:00
airtrailSync.test.ts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
airtrailWriteback.test.ts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
airtrailWriteGate.test.ts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
apiKeyCrypto.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
atlasBundle.test.ts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
atlasService.test.ts fix(atlas): assign border places by polygon, not just bounding box (#1331) 2026-06-27 20:14:52 +02:00
auditLog.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
authService.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
authServiceDb.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
backupService.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
budgetService.test.ts fix(costs): freeze the FX rate so settled expenses don't reopen when rates drift (#1335) 2026-06-27 20:14:52 +02:00
budgetServiceDb.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
categoryService.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
collabService.test.ts test: add comprehensive coverage for OAuth scopes, MCP, and core services 2026-04-11 14:08:09 +02:00
cookie.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
dayService.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
ephemeralTokens.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
inAppNotificationActions.test.ts test: apply suite review improvements (01–11) 2026-04-06 20:08:13 +02:00
inAppNotificationPrefs.test.ts feat(notifications): add unified multi-channel notification system 2026-04-05 01:22:18 +02:00
journeyService.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
journeyShareService.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
kitineraryMapper.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
kmlImportUtils.test.ts feat(places): unified file import modal with drag-and-drop and deduplication 2026-04-15 06:07:26 +02:00
kmzUnpack.test.ts fix(kml-import): address PR #488 review issues 2026-04-15 05:16:47 +02:00
mapsService.test.ts fix(maps): make Overpass endpoints configurable and harden the POI search (#1309) 2026-06-27 20:14:52 +02:00
memoriesHelpers.test.ts test: add comprehensive coverage for OAuth scopes, MCP, and core services 2026-04-11 14:08:09 +02:00
memoriesUnified.test.ts test: add comprehensive coverage for OAuth scopes, MCP, and core services 2026-04-11 14:08:09 +02:00
mfaCrypto.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
migration.test.ts feat(notifications): add unified multi-channel notification system 2026-04-05 01:22:18 +02:00
notificationPreferencesService.test.ts test(notifications): bump event_types count to 9 after adding todo_due 2026-04-20 17:38:25 +02:00
notifications.test.ts v3.0.16 — bug fixes (#964) 2026-05-06 21:38:40 +02:00
notificationService.test.ts feat(notifications): add ntfy as a first-class notification channel 2026-04-15 13:59:25 +02:00
oauthService.test.ts fix(mcp): add RFC 9728 PRM, RFC 8707 audience binding, and collab sub-feature gating 2026-04-20 07:34:38 +02:00
oidcService.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
packingService.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
passwordPolicy.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
permissions.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
placeEnrichment.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
placePhotoCache.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
placeService.test.ts fix(places): guide single-place links to the right importer (#1304) 2026-06-27 20:14:52 +02:00
queryHelpers.test.ts Use Google Maps feature IDs for place map links 2026-06-27 20:14:52 +02:00
settingsService.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
tagService.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
todoService.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
trimUserWhitespace.test.ts Bug fixes - May 2nd 2026 (#941) 2026-05-03 17:39:45 +02:00
tripService.test.ts fix(reservations): keep dated bookings on their date when the trip range shifts (#1288) 2026-06-27 20:14:52 +02:00
vacayService.test.ts test: expand test suite to 87.3% backend coverage 2026-04-06 20:08:30 +02:00
versionNotification.test.ts fix: restore broken tests after prerelease workflow refactor 2026-04-12 17:19:24 +02:00
weatherService.test.ts fix tests for sidebar/settings refactor + weather archive fallback 2026-04-18 11:45:19 +02:00
webauthnConfig.test.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00