@@ -24,7 +24,7 @@ import { Factories } from '../../Context';
24
24
import { SimpleSto , SecurityToken } from '../../entities' ;
25
25
import * as securityTokenFactoryModule from '../../entities/factories/SecurityTokenFactory' ;
26
26
import { Wallet } from '../../Wallet' ;
27
- import { ApproveErc20 } from '~ /procedures' ;
27
+ import { ApproveErc20 } from '../.. /procedures' ;
28
28
29
29
const simpleParams : InvestInSimpleStoProcedureArgs = {
30
30
symbol : 'TEST1' ,
@@ -231,7 +231,7 @@ describe('InvestInSimpleSto', () => {
231
231
) ;
232
232
} ) ;
233
233
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 ( ) => {
235
235
moduleWrapperFactoryMock . mock ( 'getModuleInstance' , Promise . resolve ( undefined ) ) ;
236
236
237
237
await expect ( target . prepareTransactions ( ) ) . rejects . toThrow (
@@ -272,7 +272,7 @@ describe('InvestInSimpleSto', () => {
272
272
) ;
273
273
} ) ;
274
274
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 ( ) => {
276
276
simpleStoFactoryMock . mock ( 'fetch' , {
277
277
...simpleStoObject ,
278
278
isFinalized : true ,
@@ -286,7 +286,7 @@ describe('InvestInSimpleSto', () => {
286
286
) ;
287
287
} ) ;
288
288
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 ( ) => {
290
290
simpleStoFactoryMock . mock ( 'fetch' , {
291
291
...simpleStoObject ,
292
292
startDate : new Date ( 2040 , 0 ) ,
@@ -300,7 +300,7 @@ describe('InvestInSimpleSto', () => {
300
300
) ;
301
301
} ) ;
302
302
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 ( ) => {
304
304
target = new InvestInSimpleSto (
305
305
{ ...simpleParams , beneficiary : beneficiaryAddress } ,
306
306
contextMock . getMockInstance ( )
0 commit comments