Skip to content

Commit

Permalink
fix(core): state tests (#11116)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Sep 24, 2024
1 parent dfba0ed commit 9af08f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tauri/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ mod tests {
let state = StateManager::new();
assert!(state.set(1u32));
assert_eq!(*state.get::<u32>(), 1);
assert!(state.unmanage::<u32>());
assert!(!state.unmanage::<u32>());
assert!(state.unmanage::<u32>().is_some());
assert!(state.unmanage::<u32>().is_none());
assert_eq!(state.try_get::<u32>(), None);
assert!(state.set(2u32));
assert_eq!(*state.get::<u32>(), 2);
Expand Down

0 comments on commit 9af08f9

Please sign in to comment.