File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,6 +187,18 @@ describe('ModifyShareholderData', () => {
187187 ) ;
188188 } ) ;
189189
190+ test ( 'should throw if the general transfer manager is not enabled' , async ( ) => {
191+ wrappersMock . mock ( 'getAttachedModules' , { } ) ;
192+ await expect ( target . prepareTransactions ( ) ) . rejects . toThrow (
193+ new PolymathError ( {
194+ code : ErrorCode . ProcedureValidationError ,
195+ message : `General Transfer Manager for token "${
196+ params . symbol
197+ } " isn't enabled. Please report this issue to the Polymath team`,
198+ } )
199+ ) ;
200+ } ) ;
201+
190202 test ( 'should throw if there is an invalid epoch time' , async ( ) => {
191203 const invalidParams = params ;
192204 invalidParams . shareholderData [ 0 ] . kycExpiry = new Date ( 0 ) ;
@@ -209,16 +221,5 @@ describe('ModifyShareholderData', () => {
209221 );
210222 });
211223*/
212- test ( 'should throw if the general transfer manager is not enabled' , async ( ) => {
213- wrappersMock . mock ( 'getAttachedModules' , { } ) ;
214- await expect ( target . prepareTransactions ( ) ) . rejects . toThrow (
215- new PolymathError ( {
216- code : ErrorCode . ProcedureValidationError ,
217- message : `General Transfer Manager for token "${
218- params . symbol
219- } " isn't enabled. Please report this issue to the Polymath team`,
220- } )
221- ) ;
222- } ) ;
223224 } ) ;
224225} ) ;
You can’t perform that action at this time.
0 commit comments