Skip to content

Commit 9b35bc0

Browse files
committed
fix: more test details
1 parent 93b1bc4 commit 9b35bc0

File tree

1 file changed

+8
-2
lines changed
  • packages/indexer-common/src/indexing-fees/__tests__

1 file changed

+8
-2
lines changed

packages/indexer-common/src/indexing-fees/__tests__/dips.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ describe('DipsManager', () => {
306306
requireSupported: true,
307307
safety: true,
308308
protocolNetwork: 'eip155:42161',
309+
allocationAmount: '1030',
309310
})
310311
// Mock fetch the subgraph deployment from the network subgraph
311312
network.networkMonitor.subgraphDeployment = jest
@@ -323,6 +324,10 @@ describe('DipsManager', () => {
323324
identifierType: SubgraphIdentifierType.DEPLOYMENT,
324325
decisionBasis: IndexingDecisionBasis.ALWAYS,
325326
allocationLifetime: 16,
327+
requireSupported: true,
328+
safety: true,
329+
protocolNetwork: 'eip155:42161',
330+
allocationAmount: '1030',
326331
})
327332
})
328333

@@ -444,14 +449,15 @@ describe('DipsCollector', () => {
444449
tapReceipt: Buffer.from('1234', 'hex'),
445450
})
446451
;(decodeTapReceipt as jest.Mock)
447-
.mockResolvedValue({
452+
.mockReturnValue({
448453
allocation_id: toAddress(testAllocationId),
449454
signer_address: toAddress('0xabcd56df41234949a75a6693c77834c00b8abbbb'),
450455
signature: Buffer.from('1234', 'hex'),
451456
timestamp_ns: 1234567890,
452457
nonce: 1,
453458
value: '1000',
454-
})(getEscrowSenderForSigner as jest.Mock)
459+
})
460+
;(getEscrowSenderForSigner as jest.Mock)
455461
.mockResolvedValue(toAddress('0x123456df40c29949a75a6693c77834c00b8a5678'))
456462

457463
await dipsCollector.tryCollectPayment(agreement)

0 commit comments

Comments
 (0)