Skip to content

Commit 70f9df0

Browse files
committed
fix: remove more merge stuff
1 parent 37d9eea commit 70f9df0

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

packages/backend/src/open_payments/wallet_address/service.test.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -837,50 +837,6 @@ describe('Open Payments Wallet Address Service', (): void => {
837837
})
838838
})
839839

840-
test('creates corresponding operator webhook if withdrawal event is for tenant', async (): Promise<void> => {
841-
const tenant = await createTenant(deps)
842-
const walletAddress = await createWalletAddress(deps, {
843-
tenantId: tenant.id,
844-
createLiquidityAccount: true
845-
})
846-
847-
accountingService.createDeposit({
848-
id: uuid(),
849-
account: walletAddress,
850-
amount: BigInt(10)
851-
})
852-
853-
await walletAddress.$query(knex).patch({
854-
processAt: new Date(),
855-
totalEventsAmount: BigInt(0)
856-
})
857-
await expect(walletAddressService.processNext()).resolves.toBe(
858-
walletAddress.id
859-
)
860-
861-
const events = await WalletAddressEvent.query(knex)
862-
.where({
863-
type: WalletAddressEventType.WalletAddressWebMonetization,
864-
withdrawalAccountId: walletAddress.id,
865-
withdrawalAssetId: walletAddress.assetId,
866-
withdrawalAmount: BigInt(10)
867-
})
868-
.withGraphFetched('webhooks')
869-
expect(events).toHaveLength(1)
870-
expect(events[0].webhooks).toEqual([
871-
expect.objectContaining({
872-
recipientTenantId: walletAddress.tenantId,
873-
eventId: events[0].id,
874-
processAt: expect.any(Date)
875-
}),
876-
expect.objectContaining({
877-
recipientTenantId: config.operatorTenantId,
878-
eventId: events[0].id,
879-
processAt: expect.any(Date)
880-
})
881-
])
882-
})
883-
884840
test.each`
885841
processAt | description
886842
${null} | ${'not scheduled'}

0 commit comments

Comments
 (0)