File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11const { assertRevert } = require ( '../helpers/assertRevert' ) ;
2+ const expectEvent = require ( '../helpers/expectEvent' ) ;
23const PausableMock = artifacts . require ( 'PausableMock' ) ;
34
45const 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} ) ;
You can’t perform that action at this time.
0 commit comments