Skip to content

Commit 60d2f31

Browse files
alcercujaybuidl
authored andcommitted
feat(contracts): add tests to ClassicDisputeKit disputecreation event
1 parent 7202688 commit 60d2f31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/test/arbitration/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ describe("DisputeKitClassic", async () => {
5757
"Access not allowed: KlerosCore only."
5858
);
5959

60-
await expect(core.connect(deployer).createDispute(2, "0x00", { value: 1000 }))
61-
.to.emit(core, "DisputeCreation")
62-
.withArgs(0, deployer.address);
60+
const tx = await core.connect(deployer).createDispute(2, "0x00", { value: 1000 });
61+
expect(tx).to.emit(core, "DisputeCreation").withArgs(0, deployer.address);
62+
expect(tx).to.emit(disputeKit, "DisputeCreation").withArgs(0, 2, "0x00");
6363

6464
await disputeKit.disputes(0).then((disputes) => {
6565
expect(BigNumber.from(Object.values(disputes)[0])).to.equal(2);

0 commit comments

Comments
 (0)