@@ -3,6 +3,7 @@ import { spy, restore } from 'sinon';
33import * as contractWrappersModule from '@polymathnetwork/contract-wrappers' ;
44import { TransactionReceiptWithDecodedLogs } from 'ethereum-protocol' ;
55import { BigNumber , GeneralTransferManager_3_0_0 } from '@polymathnetwork/contract-wrappers' ;
6+ import { cloneDeep } from 'lodash' ;
67import { ModifyShareholderData } from '../../procedures/ModifyShareholderData' ;
78import { Procedure } from '../../procedures/Procedure' ;
89import { ErrorCode , ProcedureType } from '../../types' ;
@@ -18,8 +19,6 @@ import { SecurityToken } from '../../entities/SecurityToken/SecurityToken';
1819import { PolymathError } from '../../PolymathError' ;
1920import { Shareholder } from '../../entities' ;
2021
21- const cloneDeep = require ( 'lodash/clonedeep' ) ;
22-
2322const testAddress = '0x6666666666666666666666666666666666666666' ;
2423const testAddress2 = '0x9999999999999999999999999999999999999999' ;
2524const oldShareholdersData = [
@@ -255,7 +254,7 @@ describe('ModifyShareholderData', () => {
255254 securityTokenId : ( ) => params . symbol ,
256255 address : ( ) => testAddress ,
257256 } ;
258- const fetchStub = shareholderFactoryMock . mock ( 'fetch' , Promise . resolve ( shareholderObject ) ) ;
257+ const fetchStub = shareholderFactoryMock . mock ( 'fetch' , shareholderObject ) ;
259258
260259 // Real call
261260 const resolver = await target . prepareTransactions ( ) ;
0 commit comments