todo-app/lib/desktop
Krzysztof kuhy Rudnicki be376fd240
Some checks are pending
release-apk / release (APK) (push) Waiting to run
Make the sync-account route testable, and cover every branch
The route read its own configuration from Platform.environment and $HOME, so
the only branch a test could reach was "disabled" -- the serving path, the
missing-config path and the malformed-email path were all unreachable without
mutating the process environment.

Both are now constructor parameters defaulting to the environment, so
production behaviour is unchanged and tests drive all four outcomes: 404 when
disabled, 200 with the account when enabled, 404 when ~/.config/crdt-sync/ is
incomplete, and 404 when firebase.json has no usable email. The password's
trailing newline is stripped, which the test pins.

256 tests, analyzer clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177xwzcpfpWG2qca8Mr39q9
2026-08-09 21:49:16 +02:00
..
port_guard.dart Recover instead of crashing when port 8730 is already taken 2026-08-03 15:13:15 +02:00
wrapper_server.dart Make the sync-account route testable, and cover every branch 2026-08-09 21:49:16 +02:00