feat: apply eslint --fix across project
This commit is contained in:
@ -1,28 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
import expectThrow from './helpers/expectThrow';
|
||||
var MintableToken = artifacts.require('../contracts/Tokens/MintableToken.sol');
|
||||
|
||||
contract('Mintable', function(accounts) {
|
||||
contract('Mintable', function (accounts) {
|
||||
let token;
|
||||
|
||||
beforeEach(async function() {
|
||||
beforeEach(async function () {
|
||||
token = await MintableToken.new();
|
||||
});
|
||||
|
||||
it('should start with a totalSupply of 0', async function() {
|
||||
it('should start with a totalSupply of 0', async function () {
|
||||
let totalSupply = await token.totalSupply();
|
||||
|
||||
assert.equal(totalSupply, 0);
|
||||
});
|
||||
|
||||
it('should return mintingFinished false after construction', async function() {
|
||||
it('should return mintingFinished false after construction', async function () {
|
||||
let mintingFinished = await token.mintingFinished();
|
||||
|
||||
assert.equal(mintingFinished, false);
|
||||
});
|
||||
|
||||
it('should mint a given amount of tokens to a given address', async function() {
|
||||
it('should mint a given amount of tokens to a given address', async function () {
|
||||
const result = await token.mint(accounts[0], 100);
|
||||
assert.equal(result.logs[0].event, 'Mint');
|
||||
assert.equal(result.logs[0].args.to.valueOf(), accounts[0]);
|
||||
@ -35,12 +34,11 @@ contract('Mintable', function(accounts) {
|
||||
|
||||
let totalSupply = await token.totalSupply();
|
||||
assert(totalSupply, 100);
|
||||
})
|
||||
});
|
||||
|
||||
it('should fail to mint after call to finishMinting', async function () {
|
||||
await token.finishMinting();
|
||||
assert.equal(await token.mintingFinished(), true);
|
||||
await expectThrow(token.mint(accounts[0], 100));
|
||||
})
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user