File tree 2 files changed +7
-1
lines changed
packages/transaction-controller/src/utils
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,18 @@ describe('Batch Utils', () => {
97
97
AddBatchTransactionOptions [ 'updateTransaction' ]
98
98
> ;
99
99
100
+ let publishTransactionMock : jest . MockedFn <
101
+ AddBatchTransactionOptions [ 'publishTransaction' ]
102
+ > ;
103
+
100
104
let request : AddBatchTransactionOptions ;
101
105
102
106
beforeEach ( ( ) => {
103
107
jest . resetAllMocks ( ) ;
104
108
addTransactionMock = jest . fn ( ) ;
105
109
getChainIdMock = jest . fn ( ) ;
106
110
updateTransactionMock = jest . fn ( ) ;
111
+ publishTransactionMock = jest . fn ( ) ;
107
112
108
113
determineTransactionTypeMock . mockResolvedValue ( {
109
114
type : TransactionType . simpleSend ,
@@ -141,6 +146,7 @@ describe('Batch Utils', () => {
141
146
] ,
142
147
} ,
143
148
updateTransaction : updateTransactionMock ,
149
+ publishTransaction : publishTransactionMock ,
144
150
} ;
145
151
} ) ;
146
152
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
23
23
type TransactionMeta ,
24
24
} from '..' ;
25
25
import { CollectPublishHook } from '../hooks/CollectPublishHook' ;
26
+ import { SequentialPublishBatchHook } from '../hooks/SequentialPublishBatchHook' ;
26
27
import { projectLogger } from '../logger' ;
27
28
import type {
28
29
NestedTransactionMetadata ,
@@ -42,7 +43,6 @@ import {
42
43
type TransactionParams ,
43
44
TransactionType ,
44
45
} from '../types' ;
45
- import { SequentialPublishBatchHook } from 'src/hooks/SequentialPublishBatchHook' ;
46
46
47
47
type AddTransactionBatchRequest = {
48
48
addTransaction : TransactionController [ 'addTransaction' ] ;
You can’t perform that action at this time.
0 commit comments