Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Feb 20, 2025
1 parent fd451fc commit 98024fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pallets/dapp-staking/src/test/tests_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2325,8 +2325,14 @@ fn singular_previous_stake_is_ok() {
period: period_number,
};
staking_info.stake(stake_amount_3, era_2, 0);
assert_eq!(staking_info.previous_staked.total(), stake_amount_1.total() + stake_amount_2.total());
assert_eq!(staking_info.staked.total(), stake_amount_1.total() + stake_amount_2.total() + stake_amount_3.total());
assert_eq!(
staking_info.previous_staked.total(),
stake_amount_1.total() + stake_amount_2.total()
);
assert_eq!(
staking_info.staked.total(),
stake_amount_1.total() + stake_amount_2.total() + stake_amount_3.total()
);
}

#[test]
Expand Down

0 comments on commit 98024fc

Please sign in to comment.