Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
0xChqrles committed Oct 2, 2024
1 parent 14e8496 commit f98a3ff
Showing 1 changed file with 7 additions and 44 deletions.
51 changes: 7 additions & 44 deletions contracts/src/components/registry/registry_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,7 @@ fn test_register() {
// check on emitted events
spy
.assert_emitted(
@array![
(
contract_address,
Event::RegistrationEvent(
RegistrationEvent { caller, offchain_id }
)
)
]
@array![(contract_address, Event::RegistrationEvent(RegistrationEvent { caller, offchain_id }))]
);
}

Expand All @@ -77,18 +70,8 @@ fn test_register_twice_same_offchain_id() {
spy
.assert_emitted(
@array![
(
contract_address,
Event::RegistrationEvent(
RegistrationEvent { caller, offchain_id }
)
),
(
contract_address,
Event::RegistrationEvent(
RegistrationEvent { caller, offchain_id }
)
)
(contract_address, Event::RegistrationEvent(RegistrationEvent { caller, offchain_id })),
(contract_address, Event::RegistrationEvent(RegistrationEvent { caller, offchain_id }))
]
);
}
Expand Down Expand Up @@ -117,18 +100,8 @@ fn test_register_two_different_offchain_id() {
spy
.assert_emitted(
@array![
(
contract_address,
Event::RegistrationEvent(
RegistrationEvent { caller, offchain_id: offchain_id1 }
)
),
(
contract_address,
Event::RegistrationEvent(
RegistrationEvent { caller, offchain_id: offchain_id2 }
)
)
(contract_address, Event::RegistrationEvent(RegistrationEvent { caller, offchain_id: offchain_id1 })),
(contract_address, Event::RegistrationEvent(RegistrationEvent { caller, offchain_id: offchain_id2 }))
]
);
}
Expand Down Expand Up @@ -158,18 +131,8 @@ fn test_register_same_offchain_id_from_two_different_callers() {
spy
.assert_emitted(
@array![
(
contract_address,
Event::RegistrationEvent(
RegistrationEvent { caller: caller1, offchain_id }
)
),
(
contract_address,
Event::RegistrationEvent(
RegistrationEvent { caller: caller2, offchain_id }
)
)
(contract_address, Event::RegistrationEvent(RegistrationEvent { caller: caller1, offchain_id })),
(contract_address, Event::RegistrationEvent(RegistrationEvent { caller: caller2, offchain_id }))
]
);
}
Expand Down

0 comments on commit f98a3ff

Please sign in to comment.