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 transfer event', async function () {
expectEvent.inLogs(this.logs, 'Transfer', {
from: owner,
to: ZERO_ADDRESS,
value: amount
});
});
}
it('emits an approval event', async function () {
const { logs } = await this.token.decreaseAllowance(spender, approvedAmount, { from: owner });
expectEvent.inLogs(logs, 'Approval', {
owner: owner,
spender: spender,
value: 0
});
});
it('emits an Unpause event', async function () {
const { logs } = await this.token.unpause({ from });
expectEvent.inLogs(logs, 'Unpaused');
});
});
it(`emits a ${rolename}Removed event`, async function () {
const { logs } = await this.contract[`renounce${rolename}`]({ from: authorized });
expectEvent.inLogs(logs, `${rolename}Removed`, { account: authorized });
});
it('emits an approval event', async function () {
expectEvent.inLogs(this.logs, 'Approval', {
owner: owner,
spender: burner,
value: originalAllowance - amount
});
});
}
it('emits Transfer event', async function () {
const event = expectEvent.inLogs(this.logs, 'Transfer', {
from: owner,
to: ZERO_ADDRESS
});
event.args.value.should.be.bignumber.equal(amount);
});
});
it('emits a transfer event', async function () {
const { logs } = await this.token.transfer(to, amount, { from: owner });
expectEvent.inLogs(logs, 'Transfer', {
from: owner,
to: to,
value: amount
});
});
});
it('emits a minting recipient changed event', async function () {
expectEvent.inLogs(this.logs2, 'MintingRecipientAccountChanged', {
prev: mintingRecip,
next: newMintingRecip
});
});
});
it('emits a Pause event', async function () {
const { logs } = await this.token.pause({ from });
expectEvent.inLogs(logs, 'Paused');
});
});
it('an approval event', async function () {
expectEvent.inLogs(events, 'Approval', {
owner: owner,
spender: spender,
value: 0
});
});
});