v0.2.6-pre.006
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// file: crates/ksp-app-wallet-desk/unit_tests/wallet_session.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Unit tests for Wallet Desk session DTOs and OWNER projection.
|
||||
//! Unit tests for Wallet Desk session DTOs and password request boundaries.
|
||||
|
||||
#[test]
|
||||
fn no_selection_projection_contains_no_wallet_identity() {
|
||||
@@ -24,3 +24,16 @@ fn create_request_does_not_require_debug_or_clone_password_contracts() {
|
||||
};
|
||||
accepts_request(request);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unlock_request_does_not_require_debug_or_clone_password_contracts() {
|
||||
fn accepts_request(_: crate::WalletUnlockRequestDto) {}
|
||||
let request = crate::WalletUnlockRequestDto { password: "operator-test-unlock".to_owned() };
|
||||
accepts_request(request);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn session_state_contract_includes_view_owner_and_privileged_operation() {
|
||||
assert_ne!(crate::WalletSessionStateDto::ViewOpen, crate::WalletSessionStateDto::OwnerOpen);
|
||||
assert_ne!(crate::WalletSessionStateDto::PrivilegedOperation, crate::WalletSessionStateDto::Locked);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user