Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('emits a HardDepositDecreaseTimeoutChanged event', function() {
expectEvent.inLogs(this.logs, 'HardDepositDecreaseTimeoutChanged', {
beneficiary,
decreaseTimeout
})
})
}
it('should emit a transfer event', async function() {
expectEvent.inLogs(this.logs, "Transfer", {
from: from,
to: this.ERC20SimpleSwap.address,
value: amount
})
})
}
it('should only emit a chequeBounced event when insufficient funds', function() {
if(this.totalPayout.lt(cumulativePayout.sub(this.preconditions.paidOut))) {
expectEvent.inLogs(this.logs, "ChequeBounced", {})
} else {
const events = this.logs.filter(e => e.event === 'ChequeBounced');
expect(events.length > 0).to.equal(false, `There is a ChequeBounced event`)
}
})
}
it('should emit a ChequeCashed event', function() {
expectEvent.inLogs(this.logs, "ChequeCashed", {
beneficiary,
recipient: recipient,
caller: from,
totalPayout: this.totalPayout,
cumulativePayout,
callerPayout,
})
})
it('should only emit a chequeBounced event when insufficient funds', function() {
it('should emit a HardDepositDecreasePrepared event', function() {
expectEvent.inLogs(this.logs, 'HardDepositDecreasePrepared', {
beneficiary,
decreaseAmount
})
})
}
it('emits a hardDepositAmountChanged event', function() {
expectEvent.inLogs(this.logs, 'HardDepositAmountChanged', {
beneficiary,
amount
})
})
}