We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524a276 commit 132994dCopy full SHA for 132994d
test/lifecycle/Pausable.test.js
@@ -1,4 +1,5 @@
1
const { assertRevert } = require('../helpers/assertRevert');
2
+const expectEvent = require('../helpers/expectEvent');
3
const PausableMock = artifacts.require('PausableMock');
4
5
const BigNumber = web3.BigNumber;
@@ -53,4 +54,12 @@ contract('Pausable', function () {
53
54
55
(await this.Pausable.drasticMeasureTaken()).should.equal(false);
56
});
57
+
58
+ it('should log Pause and Unpause events appropriately', async function () {
59
+ const setPauseLogs = (await this.Pausable.pause()).logs;
60
+ expectEvent.inLogs(setPauseLogs, 'Pause');
61
62
+ const setUnPauseLogs = (await this.Pausable.unpause()).logs;
63
+ expectEvent.inLogs(setUnPauseLogs, 'Unpause');
64
+ });
65
0 commit comments