feat: manually fix linting errors across tests
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
|
||||
const assertRevert = require('./helpers/assertRevert');
|
||||
const expectThrow = require('./helpers/expectThrow');
|
||||
|
||||
var StandardTokenMock = artifacts.require('./mocks/StandardTokenMock.sol');
|
||||
|
||||
contract('StandardToken', function (accounts) {
|
||||
@ -108,7 +108,7 @@ contract('StandardToken', function (accounts) {
|
||||
it('should throw an error when trying to transfer to 0x0', async function () {
|
||||
let token = await StandardTokenMock.new(accounts[0], 100);
|
||||
try {
|
||||
let transfer = await token.transfer(0x0, 100);
|
||||
await token.transfer(0x0, 100);
|
||||
assert.fail('should have thrown before');
|
||||
} catch (error) {
|
||||
assertRevert(error);
|
||||
@ -119,7 +119,7 @@ contract('StandardToken', function (accounts) {
|
||||
let token = await StandardTokenMock.new(accounts[0], 100);
|
||||
await token.approve(accounts[1], 100);
|
||||
try {
|
||||
let transfer = await token.transferFrom(accounts[0], 0x0, 100, { from: accounts[1] });
|
||||
await token.transferFrom(accounts[0], 0x0, 100, { from: accounts[1] });
|
||||
assert.fail('should have thrown before');
|
||||
} catch (error) {
|
||||
assertRevert(error);
|
||||
|
||||
Reference in New Issue
Block a user