From 82e044faf089ef68c8f1afb39645529a4ed4d7a7 Mon Sep 17 00:00:00 2001 From: Amiya Behera Date: Sat, 30 Nov 2024 18:33:50 +0530 Subject: [PATCH] profile validation tests --- custom-pallets/profile-validation/src/tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + ); }); }