Skip to content

Commit a4dc638

Browse files
author
valentinpollart
committed
fix: update import methods in test
1 parent 4162a4b commit a4dc638

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

test/Ballot.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { BigNumber } from '@ethersproject/bignumber';
33
import { parseUnits } from '@ethersproject/units';
44
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
55
import { ZERO_ADDRESS } from '../lib/constants';
6-
import { DeepSquare, ExposedBallot, ExposedBallot__factory, VotingDelegation } from '../typings';
6+
import { DeepSquare } from '../typings/contracts/DeepSquare';
7+
import { VotingDelegation } from '../typings/contracts/VotingDelegation';
8+
import { ExposedBallot } from '../typings/contracts/testing/ExposedBallot';
9+
import { ExposedBallot__factory } from '../typings/factories/contracts/testing/ExposedBallot__factory';
710
import { ERC20Agent } from './testing/ERC20Agent';
811
import setup from './testing/setup';
912
import setupVoting from './testing/setupVoting';

test/BallotFactory.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { expect } from 'chai';
22
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
33
import { ZERO_ADDRESS } from '../lib/constants';
4-
import { Ballot, BallotFactory, BallotFactory__factory, DeepSquare } from '../typings';
4+
import { Ballot } from '../typings/contracts/Ballot';
5+
import { DeepSquare } from '../typings/contracts/DeepSquare';
6+
import { BallotFactory } from '../typings/contracts/factories/BallotFactory';
7+
import { BallotFactory__factory } from '../typings/factories/contracts/factories/BallotFactory__factory';
58
import setup from './testing/setup';
69
import setupVoting from './testing/setupVoting';
710

test/VotingDelegation.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { expect } from 'chai';
22
import { parseUnits } from '@ethersproject/units';
33
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
44
import { ZERO_ADDRESS } from '../lib/constants';
5-
import { DeepSquare, VotingDelegation, VotingDelegation__factory } from '../typings';
5+
import { DeepSquare } from '../typings/contracts/DeepSquare';
6+
import { VotingDelegation } from '../typings/contracts/VotingDelegation';
7+
import { VotingDelegation__factory } from '../typings/factories/contracts/VotingDelegation__factory';
68
import { ERC20Agent } from './testing/ERC20Agent';
79
import setup from './testing/setup';
810
import setupVoting from './testing/setupVoting';

test/testing/setupVoting.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
2-
import {
3-
Ballot,
4-
Ballot__factory,
5-
BallotFactory,
6-
BallotFactory__factory,
7-
DeepSquare,
8-
VotingDelegation,
9-
VotingDelegation__factory,
10-
} from '../../typings';
2+
import { Ballot } from '../../typings/contracts/Ballot';
3+
import { DeepSquare } from '../../typings/contracts/DeepSquare';
4+
import { VotingDelegation } from '../../typings/contracts/VotingDelegation';
5+
import { BallotFactory } from '../../typings/contracts/factories/BallotFactory';
6+
import { Ballot__factory } from '../../typings/factories/contracts/Ballot__factory';
7+
import { VotingDelegation__factory } from '../../typings/factories/contracts/VotingDelegation__factory';
8+
import { BallotFactory__factory } from '../../typings/factories/contracts/factories/BallotFactory__factory';
119

1210
interface SetupVotingOutput {
1311
votingDelegation: VotingDelegation;

0 commit comments

Comments
 (0)