Commit 8cc4dac
committed
test(smart-contracts): streamline event checks in ERC20CommerceEscrowWrapper tests
- Replaced direct event assertions with `expect(tx).to.emit` for `CaptureCalled` and `ChargeCalled` events to enhance clarity and maintainability.
- Removed redundant checks for event parameters that are already validated through transaction receipts.1 parent ec8b6a1 commit 8cc4dac
File tree
1 file changed
+4
-8
lines changed- packages/smart-contracts/test/contracts
1 file changed
+4
-8
lines changedLines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 333 | + | |
| 334 | + | |
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
| |||
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
| 556 | + | |
| 557 | + | |
562 | 558 | | |
563 | 559 | | |
564 | 560 | | |
| |||
0 commit comments