Skip to content

Commit 8b9e6f7

Browse files
committed
fix: lint and test
1 parent 2b708c2 commit 8b9e6f7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/transaction-controller/src/utils/batch.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,18 @@ describe('Batch Utils', () => {
9797
AddBatchTransactionOptions['updateTransaction']
9898
>;
9999

100+
let publishTransactionMock: jest.MockedFn<
101+
AddBatchTransactionOptions['publishTransaction']
102+
>;
103+
100104
let request: AddBatchTransactionOptions;
101105

102106
beforeEach(() => {
103107
jest.resetAllMocks();
104108
addTransactionMock = jest.fn();
105109
getChainIdMock = jest.fn();
106110
updateTransactionMock = jest.fn();
111+
publishTransactionMock = jest.fn();
107112

108113
determineTransactionTypeMock.mockResolvedValue({
109114
type: TransactionType.simpleSend,
@@ -141,6 +146,7 @@ describe('Batch Utils', () => {
141146
],
142147
},
143148
updateTransaction: updateTransactionMock,
149+
publishTransaction: publishTransactionMock,
144150
};
145151
});
146152

packages/transaction-controller/src/utils/batch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
type TransactionMeta,
2424
} from '..';
2525
import { CollectPublishHook } from '../hooks/CollectPublishHook';
26+
import { SequentialPublishBatchHook } from '../hooks/SequentialPublishBatchHook';
2627
import { projectLogger } from '../logger';
2728
import type {
2829
NestedTransactionMetadata,
@@ -42,7 +43,6 @@ import {
4243
type TransactionParams,
4344
TransactionType,
4445
} from '../types';
45-
import { SequentialPublishBatchHook } from 'src/hooks/SequentialPublishBatchHook';
4646

4747
type AddTransactionBatchRequest = {
4848
addTransaction: TransactionController['addTransaction'];

0 commit comments

Comments
 (0)