android: add unit tests for token store and auth login mapping

This commit is contained in:
Codex
2026-03-08 22:22:04 +03:00
parent 54b0d4eb8c
commit 390dcb8b2d
3 changed files with 178 additions and 0 deletions

View File

@@ -20,3 +20,7 @@
- Added loading/error states for login and startup session restore.
- Added navigation graph: `AuthGraph (login)` to placeholder `Chats` screen after successful auth.
- Implemented automatic session restore on app start using stored tokens.
### Step 4 - Unit tests
- Added `DataStoreTokenRepositoryTest` for token save/read and clear behavior.
- Added `NetworkAuthRepositoryTest` for login success path and 401 -> `InvalidCredentials` error mapping.