Skip to content

Commit

Permalink
profile validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amiyatulu committed Nov 30, 2024
1 parent 7d32c9a commit 82e044f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom-pallets/profile-validation/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ fn return_profile_stake_test() {
ProfileValidation::return_profile_stake(RuntimeOrigin::signed(5), 1),
Error::<Test>::ProfileFundNotExists
);

// add account to shared storage.
assert_ok!(ProfileValidation::add_to_kyc_accounts(RuntimeOrigin::signed(1)));

assert_noop!(
ProfileValidation::add_to_kyc_accounts(RuntimeOrigin::signed(1)),
<pallet_shared_storage::Error<Test>>::AlreadyMember
);
});
}

Expand Down

0 comments on commit 82e044f

Please sign in to comment.