Update all dependencies transitively (#2363)
This commit is contained in:
committed by
GitHub
parent
bf4c9d700d
commit
ace35fdeda
@ -56,7 +56,7 @@ describe('ERC20', function () {
|
||||
describe('when there was no approved amount before', function () {
|
||||
it('reverts', async function () {
|
||||
await expectRevert(this.token.decreaseAllowance(
|
||||
spender, amount, { from: initialHolder }), 'ERC20: decreased allowance below zero'
|
||||
spender, amount, { from: initialHolder }), 'ERC20: decreased allowance below zero',
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -92,7 +92,7 @@ describe('ERC20', function () {
|
||||
it('reverts when more than the full allowance is removed', async function () {
|
||||
await expectRevert(
|
||||
this.token.decreaseAllowance(spender, approvedAmount.addn(1), { from: initialHolder }),
|
||||
'ERC20: decreased allowance below zero'
|
||||
'ERC20: decreased allowance below zero',
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -117,7 +117,7 @@ describe('ERC20', function () {
|
||||
|
||||
it('reverts', async function () {
|
||||
await expectRevert(this.token.decreaseAllowance(
|
||||
spender, amount, { from: initialHolder }), 'ERC20: decreased allowance below zero'
|
||||
spender, amount, { from: initialHolder }), 'ERC20: decreased allowance below zero',
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -201,7 +201,7 @@ describe('ERC20', function () {
|
||||
|
||||
it('reverts', async function () {
|
||||
await expectRevert(
|
||||
this.token.increaseAllowance(spender, amount, { from: initialHolder }), 'ERC20: approve to the zero address'
|
||||
this.token.increaseAllowance(spender, amount, { from: initialHolder }), 'ERC20: approve to the zero address',
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -211,7 +211,7 @@ describe('ERC20', function () {
|
||||
const amount = new BN(50);
|
||||
it('rejects a null account', async function () {
|
||||
await expectRevert(
|
||||
this.token.mint(ZERO_ADDRESS, amount), 'ERC20: mint to the zero address'
|
||||
this.token.mint(ZERO_ADDRESS, amount), 'ERC20: mint to the zero address',
|
||||
);
|
||||
});
|
||||
|
||||
@ -250,7 +250,7 @@ describe('ERC20', function () {
|
||||
describe('for a non zero account', function () {
|
||||
it('rejects burning more than balance', async function () {
|
||||
await expectRevert(this.token.burn(
|
||||
initialHolder, initialSupply.addn(1)), 'ERC20: burn amount exceeds balance'
|
||||
initialHolder, initialSupply.addn(1)), 'ERC20: burn amount exceeds balance',
|
||||
);
|
||||
});
|
||||
|
||||
@ -295,7 +295,7 @@ describe('ERC20', function () {
|
||||
describe('when the sender is the zero address', function () {
|
||||
it('reverts', async function () {
|
||||
await expectRevert(this.token.transferInternal(ZERO_ADDRESS, recipient, initialSupply),
|
||||
'ERC20: transfer from the zero address'
|
||||
'ERC20: transfer from the zero address',
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -309,7 +309,7 @@ describe('ERC20', function () {
|
||||
describe('when the owner is the zero address', function () {
|
||||
it('reverts', async function () {
|
||||
await expectRevert(this.token.approveInternal(ZERO_ADDRESS, recipient, initialSupply),
|
||||
'ERC20: approve from the zero address'
|
||||
'ERC20: approve from the zero address',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user