Skip to content

Commit fb9d3cf

Browse files
author
Victor Wiebe
committed
fix: entity tests were broken from recent changes
BREAKING CHANGE: security token now has many more variables
1 parent ef552c0 commit fb9d3cf

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

src/entities/__tests__/SecurityToken.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BigNumber } from '@polymathnetwork/contract-wrappers';
12
import { SecurityToken } from '../SecurityToken';
23
import { Context } from '../../Context';
34

@@ -6,13 +7,25 @@ const params1 = {
67
name: 'Test Token 1',
78
address: '0x1',
89
owner: '0x3',
10+
tokenDetails: 'details',
11+
version: [new BigNumber(1)],
12+
granularity: 3,
13+
totalSupply: new BigNumber(1000),
14+
currentCheckpoint: 2,
15+
treasuryWallet: '0x3',
916
};
1017

1118
const params2 = {
1219
symbol: 'TEST2',
1320
name: 'Test Token 2',
1421
address: '0x2',
1522
owner: '0x4',
23+
tokenDetails: 'details2',
24+
version: [new BigNumber(1)],
25+
granularity: 3,
26+
totalSupply: new BigNumber(1000),
27+
currentCheckpoint: 2,
28+
treasuryWallet: '0x3',
1629
};
1730

1831
const context = {} as Context;

src/entities/__tests__/Shareholders.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
import * as sinon from 'sinon';
22
import { ImportMock, MockManager } from 'ts-mock-imports';
3+
import { BigNumber } from '@polymathnetwork/contract-wrappers';
34
import * as contextModule from '../../Context';
45
import * as createCheckpointProcedure from '../../procedures/CreateCheckpoint';
5-
6-
import { Shareholders } from '~/entities/SecurityToken/Shareholders';
7-
import { SubModule } from '~/entities/SecurityToken/SubModule';
6+
import { Shareholders } from '../../entities/SecurityToken/Shareholders';
7+
import { SubModule } from '../../entities/SecurityToken/SubModule';
88
import { SecurityToken } from '../SecurityToken';
99

1010
const params1 = {
1111
symbol: 'TEST1',
1212
name: 'Test Token 1',
1313
address: '0x1',
1414
owner: '0x3',
15+
tokenDetails: 'details',
16+
version: [new BigNumber(1)],
17+
granularity: 3,
18+
totalSupply: new BigNumber(1000),
19+
currentCheckpoint: 2,
20+
treasuryWallet: '0x3',
1521
};
1622

1723
describe('Shareholders', () => {

0 commit comments

Comments
 (0)