Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Applied PR comments
  • Loading branch information
viquezclaudio committed Aug 14, 2018
commit 11890df50d7617e63c7ef3af429a331e2cd1a012
7 changes: 4 additions & 3 deletions test/lifecycle/Pausable.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { assertRevert } = require('../helpers/assertRevert');
const expectEvent = require('../helpers/expectEvent');
const PausableMock = artifacts.require('PausableMock');

const BigNumber = web3.BigNumber;
Expand Down Expand Up @@ -65,11 +66,11 @@ contract('Pausable', function () {
drasticMeasureTaken.should.be.false;
});

it('should log events appropriately', async function () {
it('should log Pause and Unpause events appropriately', async function () {
const setPauseLogs = (await this.Pausable.pause()).logs;
setPauseLogs.find(e => e.event === 'Pause');
expectEvent.inLogs(setPauseLogs, 'Pause');

const setUnPauseLogs = (await this.Pausable.unpause()).logs;
setUnPauseLogs.find(e => e.event === 'UnPause');
expectEvent.inLogs(setUnPauseLogs, 'Unpause');
});
});