diff --git a/custom-pallets/profile-validation/src/tests.rs b/custom-pallets/profile-validation/src/tests.rs index 32b4a1f..bb9fafb 100644 --- a/custom-pallets/profile-validation/src/tests.rs +++ b/custom-pallets/profile-validation/src/tests.rs @@ -259,6 +259,14 @@ fn return_profile_stake_test() { ProfileValidation::return_profile_stake(RuntimeOrigin::signed(5), 1), Error::::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)), + >::AlreadyMember + ); }); }