@@ -306,6 +306,7 @@ describe('DipsManager', () => {
306
306
requireSupported : true ,
307
307
safety : true ,
308
308
protocolNetwork : 'eip155:42161' ,
309
+ allocationAmount : '1030' ,
309
310
} )
310
311
// Mock fetch the subgraph deployment from the network subgraph
311
312
network . networkMonitor . subgraphDeployment = jest
@@ -323,6 +324,10 @@ describe('DipsManager', () => {
323
324
identifierType : SubgraphIdentifierType . DEPLOYMENT ,
324
325
decisionBasis : IndexingDecisionBasis . ALWAYS ,
325
326
allocationLifetime : 16 ,
327
+ requireSupported : true ,
328
+ safety : true ,
329
+ protocolNetwork : 'eip155:42161' ,
330
+ allocationAmount : '1030' ,
326
331
} )
327
332
} )
328
333
@@ -444,14 +449,15 @@ describe('DipsCollector', () => {
444
449
tapReceipt : Buffer . from ( '1234' , 'hex' ) ,
445
450
} )
446
451
; ( decodeTapReceipt as jest . Mock )
447
- . mockResolvedValue ( {
452
+ . mockReturnValue ( {
448
453
allocation_id : toAddress ( testAllocationId ) ,
449
454
signer_address : toAddress ( '0xabcd56df41234949a75a6693c77834c00b8abbbb' ) ,
450
455
signature : Buffer . from ( '1234' , 'hex' ) ,
451
456
timestamp_ns : 1234567890 ,
452
457
nonce : 1 ,
453
458
value : '1000' ,
454
- } ) ( getEscrowSenderForSigner as jest . Mock )
459
+ } )
460
+ ; ( getEscrowSenderForSigner as jest . Mock )
455
461
. mockResolvedValue ( toAddress ( '0x123456df40c29949a75a6693c77834c00b8a5678' ) )
456
462
457
463
await dipsCollector . tryCollectPayment ( agreement )
0 commit comments