Skip to content

Commit 465c48c

Browse files
committed
test: add comprehensive authentication state tests
Add unit tests for all authentication flows in the Core: - Login: loading state, success/failure handling, error clearing - Logout: session cleanup, error handling - Set password: initial password setup flow - Update password: password change with validation - Check requires password: state management Tests are colocated with the auth handler code following Rust conventions. Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
1 parent 3aefee4 commit 465c48c

File tree

3 files changed

+357
-57
lines changed

3 files changed

+357
-57
lines changed

src/app/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ pub mod update;
99
#[cfg(target_arch = "wasm32")]
1010
pub mod wasm;
1111

12-
#[cfg(test)]
13-
mod tests;
14-
1512
use crux_core::Command;
1613

1714
// Using deprecated Capabilities API for Http (kept for Effect enum generation)

src/app/src/tests.rs

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)