@@ -533,20 +533,19 @@ const makeOutputMock = (): jest.Mocked<OutputService> => ({
533533 emptyLine : jest . fn ( ) ,
534534} ) ;
535535
536- const makePluginManagementServiceMock = ( ) : PluginManagementService =>
537- ( {
538- listPlugins : jest . fn ( ) . mockReturnValue ( [ ] ) ,
539- getPlugin : jest . fn ( ) ,
540- addPlugin : jest . fn ( ) ,
541- removePlugin : jest . fn ( ) ,
542- enablePlugin : jest . fn ( ) ,
543- disablePlugin : jest . fn ( ) ,
544- resetPlugins : jest . fn ( ) ,
545- savePluginState : jest . fn ( ) ,
546- getInitializedDefaults : jest . fn ( ) . mockReturnValue ( [ ] ) ,
547- setInitializedDefaults : jest . fn ( ) ,
548- addToInitializedDefaults : jest . fn ( ) ,
549- } ) as unknown as PluginManagementService ;
536+ const makePluginManagementServiceMock = ( ) : PluginManagementService => ( {
537+ listPlugins : jest . fn ( ) . mockReturnValue ( [ ] ) ,
538+ getPlugin : jest . fn ( ) ,
539+ addPlugin : jest . fn ( ) ,
540+ removePlugin : jest . fn ( ) ,
541+ enablePlugin : jest . fn ( ) ,
542+ disablePlugin : jest . fn ( ) ,
543+ resetPlugins : jest . fn ( ) ,
544+ savePluginState : jest . fn ( ) ,
545+ getInitializedDefaults : jest . fn ( ) . mockReturnValue ( [ ] ) ,
546+ setInitializedDefaults : jest . fn ( ) ,
547+ addToInitializedDefaults : jest . fn ( ) ,
548+ } ) ;
550549
551550const makeContractTransactionServiceMock = ( ) : ContractTransactionService =>
552551 ( {
@@ -556,23 +555,20 @@ const makeContractTransactionServiceMock = (): ContractTransactionService =>
556555 } ) as unknown as ContractTransactionService ;
557556
558557export const makeScheduleTransactionServiceMock =
559- ( ) : jest . Mocked < ScheduleTransactionService > =>
560- ( {
561- buildScheduleCreateTransaction : jest . fn ( ) ,
562- buildScheduleSignTransaction : jest . fn ( ) ,
563- buildScheduleDeleteTransaction : jest . fn ( ) ,
564- } ) as unknown as jest . Mocked < ScheduleTransactionService > ;
558+ ( ) : jest . Mocked < ScheduleTransactionService > => ( {
559+ buildScheduleCreateTransaction : jest . fn ( ) ,
560+ buildScheduleSignTransaction : jest . fn ( ) ,
561+ buildScheduleDeleteTransaction : jest . fn ( ) ,
562+ } ) ;
565563
566- const makeContractVerifierServiceMock = ( ) : ContractVerifierService =>
567- ( {
568- verifyContract : jest . fn ( ) ,
569- isVerifiedFullMatchOnRepository : jest . fn ( ) . mockResolvedValue ( false ) ,
570- } ) as unknown as ContractVerifierService ;
564+ const makeContractVerifierServiceMock = ( ) : ContractVerifierService => ( {
565+ verifyContract : jest . fn ( ) ,
566+ isVerifiedFullMatchOnRepository : jest . fn ( ) . mockResolvedValue ( false ) ,
567+ } ) ;
571568
572- const makeContractCompilerServiceMock = ( ) : ContractCompilerService =>
573- ( {
574- compileContract : jest . fn ( ) ,
575- } ) as unknown as ContractCompilerService ;
569+ const makeContractCompilerServiceMock = ( ) : ContractCompilerService => ( {
570+ compileContract : jest . fn ( ) ,
571+ } ) ;
576572
577573/**
578574 * Create a mocked BatchTransactionService
0 commit comments