Skip to content

Commit 861c85d

Browse files
committed
test(staking): added expects()
1 parent 5970449 commit 861c85d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contracts/test/arbitration/staking.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ describe("Staking", async () => {
233233
balanceBefore = await pnk.balanceOf(deployer);
234234
await expect(sortition.executeDelayedStakes(10))
235235
.to.emit(sortition, "StakeSet")
236-
.withArgs(deployer, 2, PNK(2000));
236+
.withArgs(deployer, 2, PNK(2000))
237+
.to.not.emit(sortition, "StakeDelayedNotTransferred")
238+
.to.not.emit(sortition, "StakeDelayedAlreadyTransferred")
239+
.to.not.emit(sortition, "StakeDelayedAlreadyTransferredWithdrawn");
237240
expect(await sortition.getJurorBalance(deployer, 2)).to.be.deep.equal([
238241
PNK(4000),
239242
PNK(300), // we're the only juror so we are drawn 3 times

0 commit comments

Comments
 (0)