Commit b925b2da by Facundo Spagnuolo

Organize test files following contracts folders structure

parent 7532dab1
import ether from './helpers/ether'; import ether from '../helpers/ether';
import { advanceBlock } from './helpers/advanceToBlock'; import { advanceBlock } from '../helpers/advanceToBlock';
import { increaseTimeTo, duration } from './helpers/increaseTime'; import { increaseTimeTo, duration } from '../helpers/increaseTime';
import latestTime from './helpers/latestTime'; import latestTime from '../helpers/latestTime';
import EVMRevert from './helpers/EVMRevert'; import EVMRevert from '../helpers/EVMRevert';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
import ether from './helpers/ether'; import ether from '../helpers/ether';
import { advanceBlock } from './helpers/advanceToBlock'; import { advanceBlock } from '../helpers/advanceToBlock';
import { increaseTimeTo, duration } from './helpers/increaseTime'; import { increaseTimeTo, duration } from '../helpers/increaseTime';
import latestTime from './helpers/latestTime'; import latestTime from '../helpers/latestTime';
import EVMRevert from './helpers/EVMRevert'; import EVMRevert from '../helpers/EVMRevert';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
import { advanceBlock } from './helpers/advanceToBlock'; import { advanceBlock } from '../helpers/advanceToBlock';
import { increaseTimeTo, duration } from './helpers/increaseTime'; import { increaseTimeTo, duration } from '../helpers/increaseTime';
import latestTime from './helpers/latestTime'; import latestTime from '../helpers/latestTime';
import EVMRevert from './helpers/EVMRevert'; import EVMRevert from '../helpers/EVMRevert';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
import ether from './helpers/ether'; import ether from '../helpers/ether';
import EVMRevert from './helpers/EVMRevert'; import EVMRevert from '../helpers/EVMRevert';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
import ether from './helpers/ether'; import ether from '../helpers/ether';
import { advanceBlock } from './helpers/advanceToBlock'; import { advanceBlock } from '../helpers/advanceToBlock';
import { increaseTimeTo, duration } from './helpers/increaseTime'; import { increaseTimeTo, duration } from '../helpers/increaseTime';
import latestTime from './helpers/latestTime'; import latestTime from '../helpers/latestTime';
import EVMRevert from './helpers/EVMRevert'; import EVMRevert from '../helpers/EVMRevert';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
import ether from './helpers/ether'; import ether from '../helpers/ether';
import { advanceBlock } from './helpers/advanceToBlock'; import { advanceBlock } from '../helpers/advanceToBlock';
import { increaseTimeTo, duration } from './helpers/increaseTime'; import { increaseTimeTo, duration } from '../helpers/increaseTime';
import latestTime from './helpers/latestTime'; import latestTime from '../helpers/latestTime';
import EVMRevert from './helpers/EVMRevert'; import EVMRevert from '../helpers/EVMRevert';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
var Destructible = artifacts.require('../contracts/lifecycle/Destructible.sol'); var Destructible = artifacts.require('../contracts/lifecycle/Destructible.sol');
require('./helpers/transactionMined.js'); require('../helpers/transactionMined.js');
contract('Destructible', function (accounts) { contract('Destructible', function (accounts) {
it('should send balance to owner after destruction', async function () { it('should send balance to owner after destruction', async function () {
......
import assertRevert from './helpers/assertRevert'; import assertRevert from '../helpers/assertRevert';
const PausableMock = artifacts.require('mocks/PausableMock.sol'); const PausableMock = artifacts.require('mocks/PausableMock.sol');
contract('Pausable', function (accounts) { contract('Pausable', function (accounts) {
......
var TokenDestructible = artifacts.require('../contracts/lifecycle/TokenDestructible.sol'); var TokenDestructible = artifacts.require('../contracts/lifecycle/TokenDestructible.sol');
var StandardTokenMock = artifacts.require('mocks/StandardTokenMock.sol'); var StandardTokenMock = artifacts.require('mocks/StandardTokenMock.sol');
require('./helpers/transactionMined.js'); require('../helpers/transactionMined.js');
contract('TokenDestructible', function (accounts) { contract('TokenDestructible', function (accounts) {
let destructible; let destructible;
......
import assertRevert from './helpers/assertRevert'; import assertRevert from '../helpers/assertRevert';
const assertJump = require('./helpers/assertJump'); const assertJump = require('../helpers/assertJump');
var SafeMathMock = artifacts.require('mocks/SafeMathMock.sol'); var SafeMathMock = artifacts.require('mocks/SafeMathMock.sol');
contract('SafeMath', function (accounts) { contract('SafeMath', function (accounts) {
......
import expectThrow from './helpers/expectThrow'; import expectThrow from '../helpers/expectThrow';
const CanReclaimToken = artifacts.require('../contracts/ownership/CanReclaimToken.sol'); const CanReclaimToken = artifacts.require('../contracts/ownership/CanReclaimToken.sol');
const BasicTokenMock = artifacts.require('mocks/BasicTokenMock.sol'); const BasicTokenMock = artifacts.require('mocks/BasicTokenMock.sol');
......
import assertRevert from './helpers/assertRevert'; import assertRevert from '../helpers/assertRevert';
var Claimable = artifacts.require('../contracts/ownership/Claimable.sol'); var Claimable = artifacts.require('../contracts/ownership/Claimable.sol');
......
import assertRevert from '../helpers/assertRevert';
import assertRevert from './helpers/assertRevert';
var DelayedClaimable = artifacts.require('../contracts/ownership/DelayedClaimable.sol'); var DelayedClaimable = artifacts.require('../contracts/ownership/DelayedClaimable.sol');
......
import expectThrow from './helpers/expectThrow'; import expectThrow from '../helpers/expectThrow';
const Ownable = artifacts.require('../contracts/ownership/Ownable.sol'); const Ownable = artifacts.require('../contracts/ownership/Ownable.sol');
const HasNoContracts = artifacts.require( const HasNoContracts = artifacts.require(
......
import expectThrow from './helpers/expectThrow'; import expectThrow from '../helpers/expectThrow';
import toPromise from './helpers/toPromise'; import toPromise from '../helpers/toPromise';
const HasNoEtherTest = artifacts.require('../mocks/HasNoEtherTest.sol'); const HasNoEtherTest = artifacts.require('../mocks/HasNoEtherTest.sol');
const ForceEther = artifacts.require('../mocks/ForceEther.sol'); const ForceEther = artifacts.require('../mocks/ForceEther.sol');
......
import expectThrow from './helpers/expectThrow'; import expectThrow from '../helpers/expectThrow';
const HasNoTokens = artifacts.require('../contracts/lifecycle/HasNoTokens.sol'); const HasNoTokens = artifacts.require('../contracts/lifecycle/HasNoTokens.sol');
const ERC23TokenMock = artifacts.require('mocks/ERC23TokenMock.sol'); const ERC23TokenMock = artifacts.require('mocks/ERC23TokenMock.sol');
......
import assertRevert from './helpers/assertRevert'; import assertRevert from '../helpers/assertRevert';
var Ownable = artifacts.require('../contracts/ownership/Ownable.sol'); var Ownable = artifacts.require('../contracts/ownership/Ownable.sol');
......
import expectThrow from './helpers/expectThrow'; import expectThrow from '../../helpers/expectThrow';
import expectEvent from './helpers/expectEvent'; import expectEvent from '../../helpers/expectEvent';
const RBACMock = artifacts.require('mocks/RBACMock.sol'); const RBACMock = artifacts.require('mocks/RBACMock.sol');
......
...@@ -5,7 +5,7 @@ require('chai') ...@@ -5,7 +5,7 @@ require('chai')
.use(require('chai-bignumber')(BigNumber)) .use(require('chai-bignumber')(BigNumber))
.should(); .should();
const EVMThrow = require('./helpers/EVMThrow.js'); const EVMThrow = require('../helpers/EVMThrow.js');
const SplitPayment = artifacts.require('../contracts/payment/SplitPayment.sol'); const SplitPayment = artifacts.require('../contracts/payment/SplitPayment.sol');
contract('SplitPayment', function ([owner, payee1, payee2, payee3, nonpayee1, payer1]) { contract('SplitPayment', function ([owner, payee1, payee2, payee3, nonpayee1, payer1]) {
......
import assertRevert from './helpers/assertRevert'; import assertRevert from '../helpers/assertRevert';
var BasicTokenMock = artifacts.require('mocks/BasicTokenMock.sol'); var BasicTokenMock = artifacts.require('mocks/BasicTokenMock.sol');
......
const EVMRevert = require('./helpers/EVMRevert.js'); const EVMRevert = require('../helpers/EVMRevert.js');
const BurnableTokenMock = artifacts.require('mocks/BurnableTokenMock.sol'); const BurnableTokenMock = artifacts.require('mocks/BurnableTokenMock.sol');
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
import expectThrow from './helpers/expectThrow'; import expectThrow from '../helpers/expectThrow';
import ether from './helpers/ether'; import ether from '../helpers/ether';
var CappedToken = artifacts.require('../contracts/Tokens/CappedToken.sol'); var CappedToken = artifacts.require('../contracts/Tokens/CappedToken.sol');
......
import expectThrow from './helpers/expectThrow'; import expectThrow from '../helpers/expectThrow';
var MintableToken = artifacts.require('../contracts/Tokens/MintableToken.sol'); var MintableToken = artifacts.require('../contracts/Tokens/MintableToken.sol');
contract('Mintable', function (accounts) { contract('Mintable', function (accounts) {
......
'user strict'; 'user strict';
import assertRevert from './helpers/assertRevert'; import assertRevert from '../helpers/assertRevert';
var PausableTokenMock = artifacts.require('./mocks/PausableTokenMock.sol'); var PausableTokenMock = artifacts.require('./mocks/PausableTokenMock.sol');
contract('PausableToken', function (accounts) { contract('PausableToken', function (accounts) {
......
import EVMThrow from './helpers/EVMThrow'; import EVMThrow from '../helpers/EVMThrow';
require('chai') require('chai')
.use(require('chai-as-promised')) .use(require('chai-as-promised'))
......
import assertRevert from './helpers/assertRevert'; import assertRevert from '../helpers/assertRevert';
var StandardTokenMock = artifacts.require('mocks/StandardTokenMock.sol'); var StandardTokenMock = artifacts.require('mocks/StandardTokenMock.sol');
......
import latestTime from './helpers/latestTime'; import latestTime from '../helpers/latestTime';
import { increaseTimeTo, duration } from './helpers/increaseTime'; import { increaseTimeTo, duration } from '../helpers/increaseTime';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
import EVMRevert from './helpers/EVMRevert'; import EVMRevert from '../helpers/EVMRevert';
import latestTime from './helpers/latestTime'; import latestTime from '../helpers/latestTime';
import { increaseTimeTo, duration } from './helpers/increaseTime'; import { increaseTimeTo, duration } from '../helpers/increaseTime';
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment