From f4228f1b49d6d505d3311e5d962dfb0febdf61df Mon Sep 17 00:00:00 2001 From: Matt Condon Date: Thu, 25 Jan 2018 06:52:51 -0800 Subject: [PATCH] fix: reference contract name rather than filepath (#698) --- migrations/1_initial_migration.js | 2 +- migrations/2_deploy_contracts.js | 2 +- test/Bounty.test.js | 4 ++-- test/DayLimit.test.js | 2 +- test/Heritable.test.js | 2 +- test/LimitBalance.test.js | 2 +- test/ReentrancyGuard.test.js | 4 ++-- test/SimpleSavingsWallet.test.js | 4 ++-- test/crowdsale/CappedCrowdsale.test.js | 2 +- test/crowdsale/FinalizableCrowdsale.test.js | 2 +- test/crowdsale/RefundableCrowdsale.test.js | 2 +- test/examples/SimpleToken.test.js | 2 +- test/library/ECRecovery.test.js | 4 ++-- test/library/Math.test.js | 2 +- test/library/MerkleProof.test.js | 2 +- test/lifecycle/Destructible.test.js | 2 +- test/lifecycle/Pausable.test.js | 2 +- test/lifecycle/TokenDestructible.test.js | 4 ++-- test/math/SafeMath.test.js | 2 +- test/ownership/CanReclaimToken.test.js | 4 ++-- test/ownership/Claimable.test.js | 2 +- test/ownership/Contactable.test.js | 2 +- test/ownership/DelayedClaimable.test.js | 2 +- test/ownership/HasNoContracts.test.js | 6 ++---- test/ownership/HasNoEther.test.js | 4 ++-- test/ownership/HasNoTokens.test.js | 4 ++-- test/ownership/Ownable.test.js | 2 +- test/ownership/rbac/RBAC.test.js | 2 +- test/payment/PullPayment.test.js | 2 +- test/payment/SplitPayment.test.js | 2 +- test/token/BasicToken.test.js | 2 +- test/token/BurnableToken.test.js | 2 +- test/token/CappedToken.test.js | 2 +- test/token/ERC20/DetailedERC20.test.js | 2 +- test/token/ERC20/SafeERC20.test.js | 2 +- test/token/ERC827/ERC827Token.js | 4 ++-- test/token/MintableToken.test.js | 2 +- test/token/PausableToken.test.js | 2 +- test/token/StandardToken.test.js | 2 +- 39 files changed, 49 insertions(+), 51 deletions(-) diff --git a/migrations/1_initial_migration.js b/migrations/1_initial_migration.js index a4725fe71..fbe302cd4 100644 --- a/migrations/1_initial_migration.js +++ b/migrations/1_initial_migration.js @@ -1,4 +1,4 @@ -var Migrations = artifacts.require('./Migrations.sol'); +var Migrations = artifacts.require('Migrations'); module.exports = function (deployer) { deployer.deploy(Migrations); diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index 19ce1ca5c..a79df71b6 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -1,4 +1,4 @@ -// var Ownable = artifacts.require("ownership/Ownable.sol"); +// var Ownable = artifacts.require("Ownable"); // NOTE: Use this file to easily deploy the contracts you're writing. // (but make sure to reset this file before committing diff --git a/test/Bounty.test.js b/test/Bounty.test.js index 8d657474c..b440f399c 100644 --- a/test/Bounty.test.js +++ b/test/Bounty.test.js @@ -6,8 +6,8 @@ let sendReward = function (sender, receiver, value) { value: value, }); }; -var SecureTargetBounty = artifacts.require('mocks/SecureTargetBounty.sol'); -var InsecureTargetBounty = artifacts.require('mocks/InsecureTargetBounty.sol'); +var SecureTargetBounty = artifacts.require('SecureTargetBounty'); +var InsecureTargetBounty = artifacts.require('InsecureTargetBounty'); function awaitEvent (event, handler) { return new Promise((resolve, reject) => { diff --git a/test/DayLimit.test.js b/test/DayLimit.test.js index 8e4d28071..ab2aa903f 100644 --- a/test/DayLimit.test.js +++ b/test/DayLimit.test.js @@ -4,7 +4,7 @@ import { increaseTimeTo, duration } from './helpers/increaseTime'; import assertRevert from './helpers/assertRevert'; -const DayLimitMock = artifacts.require('mocks/DayLimitMock.sol'); +const DayLimitMock = artifacts.require('DayLimitMock'); contract('DayLimit', function (accounts) { let dayLimit; diff --git a/test/Heritable.test.js b/test/Heritable.test.js index 033fe217d..d4419d093 100644 --- a/test/Heritable.test.js +++ b/test/Heritable.test.js @@ -3,7 +3,7 @@ import expectThrow from './helpers/expectThrow'; const NULL_ADDRESS = '0x0000000000000000000000000000000000000000'; -const Heritable = artifacts.require('../contracts/ownership/Heritable.sol'); +const Heritable = artifacts.require('Heritable'); contract('Heritable', function (accounts) { let heritable; diff --git a/test/LimitBalance.test.js b/test/LimitBalance.test.js index db9c7d3d3..9df8b0dc8 100644 --- a/test/LimitBalance.test.js +++ b/test/LimitBalance.test.js @@ -1,5 +1,5 @@ import assertRevert from './helpers/assertRevert'; -var LimitBalanceMock = artifacts.require('mocks/LimitBalanceMock.sol'); +var LimitBalanceMock = artifacts.require('LimitBalanceMock'); contract('LimitBalance', function (accounts) { let lb; diff --git a/test/ReentrancyGuard.test.js b/test/ReentrancyGuard.test.js index 02d617fb2..0e32cf369 100644 --- a/test/ReentrancyGuard.test.js +++ b/test/ReentrancyGuard.test.js @@ -1,7 +1,7 @@ import expectThrow from './helpers/expectThrow'; -const ReentrancyMock = artifacts.require('./mocks/ReentrancyMock.sol'); -const ReentrancyAttack = artifacts.require('./mocks/ReentrancyAttack.sol'); +const ReentrancyMock = artifacts.require('ReentrancyMock'); +const ReentrancyAttack = artifacts.require('ReentrancyAttack'); contract('ReentrancyGuard', function (accounts) { let reentrancyMock; diff --git a/test/SimpleSavingsWallet.test.js b/test/SimpleSavingsWallet.test.js index 007363a18..07787c2de 100644 --- a/test/SimpleSavingsWallet.test.js +++ b/test/SimpleSavingsWallet.test.js @@ -1,14 +1,14 @@ import expectThrow from './helpers/expectThrow'; -const SimpleSavingsWallet = artifacts.require('../contracts/examples/SimpleSavingsWallet.sol'); +const SimpleSavingsWallet = artifacts.require('SimpleSavingsWallet'); contract('SimpleSavingsWallet', function (accounts) { let savingsWallet; let owner; const paymentAmount = 4242; - + beforeEach(async function () { savingsWallet = await SimpleSavingsWallet.new(4141); owner = await savingsWallet.owner(); diff --git a/test/crowdsale/CappedCrowdsale.test.js b/test/crowdsale/CappedCrowdsale.test.js index 9f1f23d2f..34bd42328 100644 --- a/test/crowdsale/CappedCrowdsale.test.js +++ b/test/crowdsale/CappedCrowdsale.test.js @@ -11,7 +11,7 @@ require('chai') .use(require('chai-bignumber')(BigNumber)) .should(); -const CappedCrowdsale = artifacts.require('mocks/CappedCrowdsaleImpl.sol'); +const CappedCrowdsale = artifacts.require('CappedCrowdsaleImpl'); const MintableToken = artifacts.require('MintableToken'); contract('CappedCrowdsale', function ([_, wallet]) { diff --git a/test/crowdsale/FinalizableCrowdsale.test.js b/test/crowdsale/FinalizableCrowdsale.test.js index a29a48f33..ecba5085a 100644 --- a/test/crowdsale/FinalizableCrowdsale.test.js +++ b/test/crowdsale/FinalizableCrowdsale.test.js @@ -10,7 +10,7 @@ const should = require('chai') .use(require('chai-bignumber')(BigNumber)) .should(); -const FinalizableCrowdsale = artifacts.require('mocks/FinalizableCrowdsaleImpl.sol'); +const FinalizableCrowdsale = artifacts.require('FinalizableCrowdsaleImpl'); const MintableToken = artifacts.require('MintableToken'); contract('FinalizableCrowdsale', function ([_, owner, wallet, thirdparty]) { diff --git a/test/crowdsale/RefundableCrowdsale.test.js b/test/crowdsale/RefundableCrowdsale.test.js index e097a0b9a..63aedd2d6 100644 --- a/test/crowdsale/RefundableCrowdsale.test.js +++ b/test/crowdsale/RefundableCrowdsale.test.js @@ -11,7 +11,7 @@ require('chai') .use(require('chai-bignumber')(BigNumber)) .should(); -const RefundableCrowdsale = artifacts.require('mocks/RefundableCrowdsaleImpl.sol'); +const RefundableCrowdsale = artifacts.require('RefundableCrowdsaleImpl'); const MintableToken = artifacts.require('MintableToken'); contract('RefundableCrowdsale', function ([_, owner, wallet, investor]) { diff --git a/test/examples/SimpleToken.test.js b/test/examples/SimpleToken.test.js index 8d4c33091..3d173ca35 100644 --- a/test/examples/SimpleToken.test.js +++ b/test/examples/SimpleToken.test.js @@ -1,5 +1,5 @@ import decodeLogs from '../helpers/decodeLogs'; -const SimpleToken = artifacts.require('SimpleToken.sol'); +const SimpleToken = artifacts.require('SimpleToken'); contract('SimpleToken', accounts => { let token; diff --git a/test/library/ECRecovery.test.js b/test/library/ECRecovery.test.js index ae69f42cf..56852adf0 100644 --- a/test/library/ECRecovery.test.js +++ b/test/library/ECRecovery.test.js @@ -1,5 +1,5 @@ -var ECRecoveryMock = artifacts.require('ECRecoveryMock.sol'); -var ECRecoveryLib = artifacts.require('ECRecovery.sol'); +var ECRecoveryMock = artifacts.require('ECRecoveryMock'); +var ECRecoveryLib = artifacts.require('ECRecovery'); var hashMessage = require('../helpers/hashMessage.js'); diff --git a/test/library/Math.test.js b/test/library/Math.test.js index b112646a0..8e23dec09 100644 --- a/test/library/Math.test.js +++ b/test/library/Math.test.js @@ -1,4 +1,4 @@ -var MathMock = artifacts.require('../mocks/MathMock.sol'); +var MathMock = artifacts.require('MathMock'); contract('Math', function (accounts) { let math; diff --git a/test/library/MerkleProof.test.js b/test/library/MerkleProof.test.js index 9d464401f..aa11cbb2d 100644 --- a/test/library/MerkleProof.test.js +++ b/test/library/MerkleProof.test.js @@ -2,7 +2,7 @@ import MerkleTree from '../helpers/merkleTree.js'; import { sha3, bufferToHex } from 'ethereumjs-util'; -var MerkleProof = artifacts.require('MerkleProof.sol'); +var MerkleProof = artifacts.require('MerkleProof'); contract('MerkleProof', function (accounts) { let merkleProof; diff --git a/test/lifecycle/Destructible.test.js b/test/lifecycle/Destructible.test.js index fd346eda8..2757d76cd 100644 --- a/test/lifecycle/Destructible.test.js +++ b/test/lifecycle/Destructible.test.js @@ -1,5 +1,5 @@ -var Destructible = artifacts.require('../contracts/lifecycle/Destructible.sol'); +var Destructible = artifacts.require('Destructible'); require('../helpers/transactionMined.js'); contract('Destructible', function (accounts) { diff --git a/test/lifecycle/Pausable.test.js b/test/lifecycle/Pausable.test.js index 8aefc3633..aaf11000e 100644 --- a/test/lifecycle/Pausable.test.js +++ b/test/lifecycle/Pausable.test.js @@ -1,6 +1,6 @@ import assertRevert from '../helpers/assertRevert'; -const PausableMock = artifacts.require('mocks/PausableMock.sol'); +const PausableMock = artifacts.require('PausableMock'); contract('Pausable', function (accounts) { it('can perform normal process in non-pause', async function () { diff --git a/test/lifecycle/TokenDestructible.test.js b/test/lifecycle/TokenDestructible.test.js index 4ba6e551c..8566bf190 100644 --- a/test/lifecycle/TokenDestructible.test.js +++ b/test/lifecycle/TokenDestructible.test.js @@ -1,6 +1,6 @@ -var TokenDestructible = artifacts.require('../contracts/lifecycle/TokenDestructible.sol'); -var StandardTokenMock = artifacts.require('mocks/StandardTokenMock.sol'); +var TokenDestructible = artifacts.require('TokenDestructible'); +var StandardTokenMock = artifacts.require('StandardTokenMock'); require('../helpers/transactionMined.js'); contract('TokenDestructible', function (accounts) { diff --git a/test/math/SafeMath.test.js b/test/math/SafeMath.test.js index 826c6c194..3e6ada98e 100644 --- a/test/math/SafeMath.test.js +++ b/test/math/SafeMath.test.js @@ -1,6 +1,6 @@ import assertRevert from '../helpers/assertRevert'; const assertJump = require('../helpers/assertJump'); -var SafeMathMock = artifacts.require('mocks/SafeMathMock.sol'); +var SafeMathMock = artifacts.require('SafeMathMock'); contract('SafeMath', function (accounts) { let safeMath; diff --git a/test/ownership/CanReclaimToken.test.js b/test/ownership/CanReclaimToken.test.js index ba803b18f..6f0f2c671 100644 --- a/test/ownership/CanReclaimToken.test.js +++ b/test/ownership/CanReclaimToken.test.js @@ -1,8 +1,8 @@ import expectThrow from '../helpers/expectThrow'; -const CanReclaimToken = artifacts.require('../contracts/ownership/CanReclaimToken.sol'); -const BasicTokenMock = artifacts.require('mocks/BasicTokenMock.sol'); +const CanReclaimToken = artifacts.require('CanReclaimToken'); +const BasicTokenMock = artifacts.require('BasicTokenMock'); contract('CanReclaimToken', function (accounts) { let token = null; diff --git a/test/ownership/Claimable.test.js b/test/ownership/Claimable.test.js index acf27bfcc..52340fb94 100644 --- a/test/ownership/Claimable.test.js +++ b/test/ownership/Claimable.test.js @@ -1,7 +1,7 @@ import assertRevert from '../helpers/assertRevert'; -var Claimable = artifacts.require('../contracts/ownership/Claimable.sol'); +var Claimable = artifacts.require('Claimable'); contract('Claimable', function (accounts) { let claimable; diff --git a/test/ownership/Contactable.test.js b/test/ownership/Contactable.test.js index bb7f6d684..901ba4824 100644 --- a/test/ownership/Contactable.test.js +++ b/test/ownership/Contactable.test.js @@ -1,5 +1,5 @@ -var Contactable = artifacts.require('../contracts/ownership/Contactable.sol'); +var Contactable = artifacts.require('Contactable'); contract('Contactable', function (accounts) { let contactable; diff --git a/test/ownership/DelayedClaimable.test.js b/test/ownership/DelayedClaimable.test.js index 59164293d..90be7fbc9 100644 --- a/test/ownership/DelayedClaimable.test.js +++ b/test/ownership/DelayedClaimable.test.js @@ -1,6 +1,6 @@ import assertRevert from '../helpers/assertRevert'; -var DelayedClaimable = artifacts.require('../contracts/ownership/DelayedClaimable.sol'); +var DelayedClaimable = artifacts.require('DelayedClaimable'); contract('DelayedClaimable', function (accounts) { var delayedClaimable; diff --git a/test/ownership/HasNoContracts.test.js b/test/ownership/HasNoContracts.test.js index 03f3948f8..f2020a173 100644 --- a/test/ownership/HasNoContracts.test.js +++ b/test/ownership/HasNoContracts.test.js @@ -1,10 +1,8 @@ import expectThrow from '../helpers/expectThrow'; -const Ownable = artifacts.require('../contracts/ownership/Ownable.sol'); -const HasNoContracts = artifacts.require( - '../contracts/ownership/HasNoContracts.sol', -); +const Ownable = artifacts.require('Ownable'); +const HasNoContracts = artifacts.require('HasNoContracts'); contract('HasNoContracts', function (accounts) { let hasNoContracts = null; diff --git a/test/ownership/HasNoEther.test.js b/test/ownership/HasNoEther.test.js index eeab02d10..ff95e998f 100644 --- a/test/ownership/HasNoEther.test.js +++ b/test/ownership/HasNoEther.test.js @@ -1,8 +1,8 @@ import expectThrow from '../helpers/expectThrow'; import toPromise from '../helpers/toPromise'; -const HasNoEtherTest = artifacts.require('../mocks/HasNoEtherTest.sol'); -const ForceEther = artifacts.require('../mocks/ForceEther.sol'); +const HasNoEtherTest = artifacts.require('HasNoEtherTest'); +const ForceEther = artifacts.require('ForceEther'); contract('HasNoEther', function (accounts) { const amount = web3.toWei('1', 'ether'); diff --git a/test/ownership/HasNoTokens.test.js b/test/ownership/HasNoTokens.test.js index ac3690fd3..e9c14a7f5 100644 --- a/test/ownership/HasNoTokens.test.js +++ b/test/ownership/HasNoTokens.test.js @@ -1,8 +1,8 @@ import expectThrow from '../helpers/expectThrow'; -const HasNoTokens = artifacts.require('../contracts/lifecycle/HasNoTokens.sol'); -const ERC223TokenMock = artifacts.require('mocks/ERC223TokenMock.sol'); +const HasNoTokens = artifacts.require('HasNoTokens'); +const ERC223TokenMock = artifacts.require('ERC223TokenMock'); contract('HasNoTokens', function (accounts) { let hasNoTokens = null; diff --git a/test/ownership/Ownable.test.js b/test/ownership/Ownable.test.js index 53cd0d2a0..209a209b1 100644 --- a/test/ownership/Ownable.test.js +++ b/test/ownership/Ownable.test.js @@ -1,7 +1,7 @@ import assertRevert from '../helpers/assertRevert'; -var Ownable = artifacts.require('../contracts/ownership/Ownable.sol'); +var Ownable = artifacts.require('Ownable'); contract('Ownable', function (accounts) { let ownable; diff --git a/test/ownership/rbac/RBAC.test.js b/test/ownership/rbac/RBAC.test.js index 00dc74e70..e748efba5 100644 --- a/test/ownership/rbac/RBAC.test.js +++ b/test/ownership/rbac/RBAC.test.js @@ -1,7 +1,7 @@ import expectThrow from '../../helpers/expectThrow'; import expectEvent from '../../helpers/expectEvent'; -const RBACMock = artifacts.require('mocks/RBACMock.sol'); +const RBACMock = artifacts.require('RBACMock'); require('chai') .use(require('chai-as-promised')) diff --git a/test/payment/PullPayment.test.js b/test/payment/PullPayment.test.js index 450dcddc1..8f5a4e41a 100644 --- a/test/payment/PullPayment.test.js +++ b/test/payment/PullPayment.test.js @@ -1,4 +1,4 @@ -var PullPaymentMock = artifacts.require('mocks/PullPaymentMock.sol'); +var PullPaymentMock = artifacts.require('PullPaymentMock'); contract('PullPayment', function (accounts) { let ppce; diff --git a/test/payment/SplitPayment.test.js b/test/payment/SplitPayment.test.js index 60257b4d9..dd18eaeac 100644 --- a/test/payment/SplitPayment.test.js +++ b/test/payment/SplitPayment.test.js @@ -6,7 +6,7 @@ require('chai') .should(); const EVMThrow = require('../helpers/EVMThrow.js'); -const SplitPayment = artifacts.require('../contracts/payment/SplitPayment.sol'); +const SplitPayment = artifacts.require('SplitPayment'); contract('SplitPayment', function ([owner, payee1, payee2, payee3, nonpayee1, payer1]) { const amount = web3.toWei(1.0, 'ether'); diff --git a/test/token/BasicToken.test.js b/test/token/BasicToken.test.js index 7391096f4..2616fef17 100644 --- a/test/token/BasicToken.test.js +++ b/test/token/BasicToken.test.js @@ -1,6 +1,6 @@ import assertRevert from '../helpers/assertRevert'; -var BasicTokenMock = artifacts.require('mocks/BasicTokenMock.sol'); +var BasicTokenMock = artifacts.require('BasicTokenMock'); contract('BasicToken', function (accounts) { it('should return the correct totalSupply after construction', async function () { diff --git a/test/token/BurnableToken.test.js b/test/token/BurnableToken.test.js index 91b470d4f..22c156645 100644 --- a/test/token/BurnableToken.test.js +++ b/test/token/BurnableToken.test.js @@ -1,6 +1,6 @@ const EVMRevert = require('../helpers/EVMRevert.js'); -const BurnableTokenMock = artifacts.require('mocks/BurnableTokenMock.sol'); +const BurnableTokenMock = artifacts.require('BurnableTokenMock'); const BigNumber = web3.BigNumber; require('chai') diff --git a/test/token/CappedToken.test.js b/test/token/CappedToken.test.js index 2dc932420..b5d64d43b 100644 --- a/test/token/CappedToken.test.js +++ b/test/token/CappedToken.test.js @@ -2,7 +2,7 @@ import expectThrow from '../helpers/expectThrow'; import ether from '../helpers/ether'; -var CappedToken = artifacts.require('../contracts/Tokens/CappedToken.sol'); +var CappedToken = artifacts.require('CappedToken'); contract('Capped', function (accounts) { const cap = ether(1000); diff --git a/test/token/ERC20/DetailedERC20.test.js b/test/token/ERC20/DetailedERC20.test.js index cfb1d1e71..62156a7fd 100644 --- a/test/token/ERC20/DetailedERC20.test.js +++ b/test/token/ERC20/DetailedERC20.test.js @@ -5,7 +5,7 @@ require('chai') .use(require('chai-bignumber')(BigNumber)) .should(); -const DetailedERC20Mock = artifacts.require('DetailedERC20Mock.sol'); +const DetailedERC20Mock = artifacts.require('DetailedERC20Mock'); contract('DetailedERC20', accounts => { let detailedERC20 = null; diff --git a/test/token/ERC20/SafeERC20.test.js b/test/token/ERC20/SafeERC20.test.js index 40a43e1a7..1b663a5a6 100644 --- a/test/token/ERC20/SafeERC20.test.js +++ b/test/token/ERC20/SafeERC20.test.js @@ -4,7 +4,7 @@ require('chai') .use(require('chai-as-promised')) .should(); -const SafeERC20Helper = artifacts.require('SafeERC20Helper.sol'); +const SafeERC20Helper = artifacts.require('SafeERC20Helper'); contract('SafeERC20', function () { beforeEach(async function () { diff --git a/test/token/ERC827/ERC827Token.js b/test/token/ERC827/ERC827Token.js index 302cca7dd..33cff4fa4 100644 --- a/test/token/ERC827/ERC827Token.js +++ b/test/token/ERC827/ERC827Token.js @@ -1,7 +1,7 @@ import EVMRevert from '../../helpers/EVMRevert'; -var Message = artifacts.require('MessageHelper.sol'); -var ERC827TokenMock = artifacts.require('ERC827TokenMock.sol'); +var Message = artifacts.require('MessageHelper'); +var ERC827TokenMock = artifacts.require('ERC827TokenMock'); var BigNumber = web3.BigNumber; var _ = require('lodash'); diff --git a/test/token/MintableToken.test.js b/test/token/MintableToken.test.js index 38ea5d99d..98378459a 100644 --- a/test/token/MintableToken.test.js +++ b/test/token/MintableToken.test.js @@ -1,6 +1,6 @@ import expectThrow from '../helpers/expectThrow'; -var MintableToken = artifacts.require('../contracts/Tokens/MintableToken.sol'); +var MintableToken = artifacts.require('MintableToken'); contract('Mintable', function (accounts) { let token; diff --git a/test/token/PausableToken.test.js b/test/token/PausableToken.test.js index 33228e217..780a04cee 100644 --- a/test/token/PausableToken.test.js +++ b/test/token/PausableToken.test.js @@ -1,7 +1,7 @@ 'user strict'; import assertRevert from '../helpers/assertRevert'; -var PausableTokenMock = artifacts.require('./mocks/PausableTokenMock.sol'); +var PausableTokenMock = artifacts.require('PausableTokenMock'); contract('PausableToken', function (accounts) { let token; diff --git a/test/token/StandardToken.test.js b/test/token/StandardToken.test.js index f6726a292..5944ac2a0 100644 --- a/test/token/StandardToken.test.js +++ b/test/token/StandardToken.test.js @@ -1,7 +1,7 @@ import assertRevert from '../helpers/assertRevert'; -var StandardTokenMock = artifacts.require('mocks/StandardTokenMock.sol'); +var StandardTokenMock = artifacts.require('StandardTokenMock'); contract('StandardToken', function (accounts) { let token;