Skip to content

Commit 0861867

Browse files
committed
Added Event tests to Pausable contract
1 parent f00fce5 commit 0861867

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/lifecycle/Pausable.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,12 @@ contract('Pausable', function () {
6464
const drasticMeasureTaken = await this.Pausable.drasticMeasureTaken();
6565
drasticMeasureTaken.should.be.false;
6666
});
67+
68+
it('should log events appropriately', async function () {
69+
const setPauseLogs = (await this.Pausable.pause()).logs;
70+
setPauseLogs.find(e => e.event === 'Pause');
71+
72+
const setUnPauseLogs = (await this.Pausable.unpause()).logs;
73+
setUnPauseLogs.find(e => e.event === 'UnPause');
74+
});
6775
});

0 commit comments

Comments
 (0)