Update all dependencies transitively (#2363)
This commit is contained in:
committed by
GitHub
parent
bf4c9d700d
commit
ace35fdeda
@ -42,7 +42,7 @@ describe('AccessControl', function () {
|
||||
it('non-admin cannot grant role to other accounts', async function () {
|
||||
await expectRevert(
|
||||
this.accessControl.grantRole(ROLE, authorized, { from: other }),
|
||||
'AccessControl: sender must be an admin to grant'
|
||||
'AccessControl: sender must be an admin to grant',
|
||||
);
|
||||
});
|
||||
|
||||
@ -76,7 +76,7 @@ describe('AccessControl', function () {
|
||||
it('non-admin cannot revoke role', async function () {
|
||||
await expectRevert(
|
||||
this.accessControl.revokeRole(ROLE, authorized, { from: other }),
|
||||
'AccessControl: sender must be an admin to revoke'
|
||||
'AccessControl: sender must be an admin to revoke',
|
||||
);
|
||||
});
|
||||
|
||||
@ -110,7 +110,7 @@ describe('AccessControl', function () {
|
||||
it('only the sender can renounce their roles', async function () {
|
||||
await expectRevert(
|
||||
this.accessControl.renounceRole(ROLE, authorized, { from: admin }),
|
||||
'AccessControl: can only renounce roles for self'
|
||||
'AccessControl: can only renounce roles for self',
|
||||
);
|
||||
});
|
||||
|
||||
@ -170,14 +170,14 @@ describe('AccessControl', function () {
|
||||
it('a role\'s previous admins no longer grant roles', async function () {
|
||||
await expectRevert(
|
||||
this.accessControl.grantRole(ROLE, authorized, { from: admin }),
|
||||
'AccessControl: sender must be an admin to grant'
|
||||
'AccessControl: sender must be an admin to grant',
|
||||
);
|
||||
});
|
||||
|
||||
it('a role\'s previous admins no longer revoke roles', async function () {
|
||||
await expectRevert(
|
||||
this.accessControl.revokeRole(ROLE, authorized, { from: admin }),
|
||||
'AccessControl: sender must be an admin to revoke'
|
||||
'AccessControl: sender must be an admin to revoke',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@ -28,14 +28,14 @@ describe('Ownable', function () {
|
||||
it('prevents non-owners from transferring', async function () {
|
||||
await expectRevert(
|
||||
this.ownable.transferOwnership(other, { from: other }),
|
||||
'Ownable: caller is not the owner'
|
||||
'Ownable: caller is not the owner',
|
||||
);
|
||||
});
|
||||
|
||||
it('guards ownership against stuck state', async function () {
|
||||
await expectRevert(
|
||||
this.ownable.transferOwnership(ZERO_ADDRESS, { from: owner }),
|
||||
'Ownable: new owner is the zero address'
|
||||
'Ownable: new owner is the zero address',
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -51,7 +51,7 @@ describe('Ownable', function () {
|
||||
it('prevents non-owners from renouncement', async function () {
|
||||
await expectRevert(
|
||||
this.ownable.renounceOwnership({ from: other }),
|
||||
'Ownable: caller is not the owner'
|
||||
'Ownable: caller is not the owner',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user