Skip to content

Commit 59ba9e5

Browse files
author
Victor Wiebe
committed
fix: descriptions and unnecessary code in two procedures
1 parent b19f267 commit 59ba9e5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/procedures/__tests__/InvestInSimpleSto.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Factories } from '../../Context';
2424
import { SimpleSto, SecurityToken } from '../../entities';
2525
import * as securityTokenFactoryModule from '../../entities/factories/SecurityTokenFactory';
2626
import { Wallet } from '../../Wallet';
27-
import { ApproveErc20 } from '~/procedures';
27+
import { ApproveErc20 } from '../../procedures';
2828

2929
const simpleParams: InvestInSimpleStoProcedureArgs = {
3030
symbol: 'TEST1',
@@ -231,7 +231,7 @@ describe('InvestInSimpleSto', () => {
231231
);
232232
});
233233

234-
test('should throw an error if the simple sto has not been launched or is archived', async () => {
234+
test('should throw an error if the simple sto has not yet been launched or is archived', async () => {
235235
moduleWrapperFactoryMock.mock('getModuleInstance', Promise.resolve(undefined));
236236

237237
await expect(target.prepareTransactions()).rejects.toThrow(
@@ -272,7 +272,7 @@ describe('InvestInSimpleSto', () => {
272272
);
273273
});
274274

275-
test('should throw an error if the sto is already finalized', async () => {
275+
test('should throw an error if the sto has already been finalized', async () => {
276276
simpleStoFactoryMock.mock('fetch', {
277277
...simpleStoObject,
278278
isFinalized: true,
@@ -286,7 +286,7 @@ describe('InvestInSimpleSto', () => {
286286
);
287287
});
288288

289-
test('should throw an error if the start date is in the future', async () => {
289+
test('should throw an error if the sto start date is in the future', async () => {
290290
simpleStoFactoryMock.mock('fetch', {
291291
...simpleStoObject,
292292
startDate: new Date(2040, 0),
@@ -300,7 +300,7 @@ describe('InvestInSimpleSto', () => {
300300
);
301301
});
302302

303-
test('should throw an error if beneficial investments not allowed, and the parameters include a beneficiary address', async () => {
303+
test('should throw an error if beneficial investments are not allowed and the parameters include a beneficiary address', async () => {
304304
target = new InvestInSimpleSto(
305305
{ ...simpleParams, beneficiary: beneficiaryAddress },
306306
contextMock.getMockInstance()

src/procedures/__tests__/LaunchSimpleSto.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { restore, spy } from 'sinon';
33
import * as contractWrappersModule from '@polymathnetwork/contract-wrappers';
44
import {
55
BigNumber,
6-
CappedSTOFundRaiseType as CappedStoCurrency,
76
SecurityTokenEvents,
87
TransactionReceiptWithDecodedLogs,
98
} from '@polymathnetwork/contract-wrappers';
@@ -28,7 +27,6 @@ import { Wallet } from '../../Wallet';
2827
import { TransferErc20 } from '..';
2928
import { mockFactories } from '../../testUtils/mockFactories';
3029
import { SimpleSto, SecurityToken } from '../../entities';
31-
import { PostTransactionResolver } from '../../PostTransactionResolver';
3230

3331
const params: LaunchSimpleStoProcedureArgs = {
3432
symbol: 'TEST1',

0 commit comments

Comments
 (0)