mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
frame system: add event util functions for tests. (#8734)
* frame system: add event util functions for tests. * URemove unused fn. * Apply review suggestions.
This commit is contained in:
@@ -374,6 +374,17 @@ fn deposit_event_topics() {
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn event_util_functions_should_work() {
|
||||
new_test_ext().execute_with(|| {
|
||||
System::set_block_number(1);
|
||||
System::deposit_event(SysEvent::CodeUpdated);
|
||||
|
||||
System::assert_has_event(SysEvent::CodeUpdated.into());
|
||||
System::assert_last_event(SysEvent::CodeUpdated.into());
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn prunes_block_hash_mappings() {
|
||||
new_test_ext().execute_with(|| {
|
||||
|
||||
Reference in New Issue
Block a user