File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ import {
22
22
} from "@proto-kit/sdk" ;
23
23
import { LocalTaskQueue , Sequencer , TaskPayload } from "@proto-kit/sequencer" ;
24
24
25
- import { IndexerNotifier } from "../src/IndexerNotifier" ;
26
- import { IndexBlockTaskParametersSerializer } from "../src/tasks/IndexBlockTaskParameters" ;
25
+ import { IndexerNotifier , IndexBlockTaskParametersSerializer } from "../src" ;
27
26
28
27
class TestBalances extends Balances {
29
28
@runtimeMethod ( )
@@ -105,6 +104,7 @@ function createAppChain() {
105
104
TaskQueue : {
106
105
simulatedDuration : 0 ,
107
106
} ,
107
+ SequencerStartupModule : { } ,
108
108
IndexerNotifier : { } ,
109
109
} ,
110
110
Signer : {
@@ -164,8 +164,9 @@ describe("IndexerNotifier", () => {
164
164
getQueueSpy . mockImplementation ( async ( queueName : string ) => {
165
165
return {
166
166
name : queueName ,
167
+ offCompleted : jest . fn ( async ( x ) => { } ) ,
167
168
addTask : addTaskSpy ,
168
- onCompleted : jest . fn ( async ( ) => { } ) ,
169
+ onCompleted : jest . fn ( async ( ) => 5 ) ,
169
170
close : jest . fn ( async ( ) => { } ) ,
170
171
} ;
171
172
} ) ;
You can’t perform that action at this time.
0 commit comments