Skip to content

Commit 11890df

Browse files
committed
Applied PR comments
1 parent 0861867 commit 11890df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/lifecycle/Pausable.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { assertRevert } = require('../helpers/assertRevert');
2+
const expectEvent = require('../helpers/expectEvent');
23
const PausableMock = artifacts.require('PausableMock');
34

45
const BigNumber = web3.BigNumber;
@@ -65,11 +66,11 @@ contract('Pausable', function () {
6566
drasticMeasureTaken.should.be.false;
6667
});
6768

68-
it('should log events appropriately', async function () {
69+
it('should log Pause and Unpause events appropriately', async function () {
6970
const setPauseLogs = (await this.Pausable.pause()).logs;
70-
setPauseLogs.find(e => e.event === 'Pause');
71+
expectEvent.inLogs(setPauseLogs, 'Pause');
7172

7273
const setUnPauseLogs = (await this.Pausable.unpause()).logs;
73-
setUnPauseLogs.find(e => e.event === 'UnPause');
74+
expectEvent.inLogs(setUnPauseLogs, 'Unpause');
7475
});
7576
});

0 commit comments

Comments
 (0)