Skip to content

Commit 894e8c2

Browse files
committed
Get index test compiling
1 parent 96ef9fc commit 894e8c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/indexer/test/IndexerNotifier.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import {
2222
} from "@proto-kit/sdk";
2323
import { LocalTaskQueue, Sequencer, TaskPayload } from "@proto-kit/sequencer";
2424

25-
import { IndexerNotifier } from "../src/IndexerNotifier";
26-
import { IndexBlockTaskParametersSerializer } from "../src/tasks/IndexBlockTaskParameters";
25+
import { IndexerNotifier, IndexBlockTaskParametersSerializer } from "../src";
2726

2827
class TestBalances extends Balances {
2928
@runtimeMethod()
@@ -105,6 +104,7 @@ function createAppChain() {
105104
TaskQueue: {
106105
simulatedDuration: 0,
107106
},
107+
SequencerStartupModule: {},
108108
IndexerNotifier: {},
109109
},
110110
Signer: {
@@ -164,8 +164,9 @@ describe("IndexerNotifier", () => {
164164
getQueueSpy.mockImplementation(async (queueName: string) => {
165165
return {
166166
name: queueName,
167+
offCompleted: jest.fn(async (x) => {}),
167168
addTask: addTaskSpy,
168-
onCompleted: jest.fn(async () => {}),
169+
onCompleted: jest.fn(async () => 5),
169170
close: jest.fn(async () => {}),
170171
};
171172
});

0 commit comments

Comments
 (0)