Remove Babel (#1074)
* Test helpers no longer rely on Babel. * Behaviours are no longer imported. * Removed Babel dependency. * Fixed linter errors.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import expectThrow from '../../helpers/expectThrow';
|
||||
const { expectThrow } = require('../../helpers/expectThrow');
|
||||
|
||||
const ROLE_MINTER = 'minter';
|
||||
|
||||
export default function ([owner, anotherAccount]) {
|
||||
function shouldBehaveLikeRBACMintableToken ([owner, anotherAccount]) {
|
||||
describe('handle roles', function () {
|
||||
it('owner can add and remove a minter role', async function () {
|
||||
await this.token.addMinter(anotherAccount, { from: owner });
|
||||
@ -24,5 +24,9 @@ export default function ([owner, anotherAccount]) {
|
||||
this.token.removeMinter(anotherAccount, { from: anotherAccount })
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
shouldBehaveLikeRBACMintableToken,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user