Skip to content
Snippets Groups Projects
Commit a0466cbe authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

add more details to idty creation test

parent 874d1c93
No related branches found
No related tags found
No related merge requests found
...@@ -957,12 +957,22 @@ fn test_create_new_idty_without_founds() { ...@@ -957,12 +957,22 @@ fn test_create_new_idty_without_founds() {
.build() .build()
.execute_with(|| { .execute_with(|| {
run_to_block(2); run_to_block(2);
assert_eq!(
Balances::free_balance(AccountKeyring::Eve.to_account_id()),
0
);
// Should be able to create an identity without founds // Should be able to create an identity without founds
assert_ok!(Identity::create_identity( assert_ok!(Identity::create_identity(
frame_system::RawOrigin::Signed(AccountKeyring::Alice.to_account_id()).into(), frame_system::RawOrigin::Signed(AccountKeyring::Alice.to_account_id()).into(),
AccountKeyring::Eve.to_account_id(), AccountKeyring::Eve.to_account_id(),
)); ));
System::assert_has_event(RuntimeEvent::Identity(
pallet_identity::Event::IdtyCreated {
idty_index: 5,
owner_key: AccountKeyring::Eve.to_account_id(),
},
));
// At next block, nothing should be preleved // At next block, nothing should be preleved
run_to_block(3); run_to_block(3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment