No longer assigning awaits to temporary variables. (#1216)
This commit is contained in:
@ -6,12 +6,10 @@ function shouldBehaveLikeRBACMintableToken (owner, [anyone]) {
|
||||
describe('handle roles', function () {
|
||||
it('owner can add and remove a minter role', async function () {
|
||||
await this.token.addMinter(anyone, { from: owner });
|
||||
let hasRole = await this.token.hasRole(anyone, ROLE_MINTER);
|
||||
hasRole.should.be.true;
|
||||
(await this.token.hasRole(anyone, ROLE_MINTER)).should.be.true;
|
||||
|
||||
await this.token.removeMinter(anyone, { from: owner });
|
||||
hasRole = await this.token.hasRole(anyone, ROLE_MINTER);
|
||||
hasRole.should.be.false;
|
||||
(await this.token.hasRole(anyone, ROLE_MINTER)).should.be.false;
|
||||
});
|
||||
|
||||
it('anyone can\'t add or remove a minter role', async function () {
|
||||
|
||||
Reference in New Issue
Block a user