From 32f01e3e328db0006a55c6324625b49d60244b66 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 15:16:20 -0800 Subject: fix typescript issues --- test/onchain.test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/onchain.test.ts') diff --git a/test/onchain.test.ts b/test/onchain.test.ts index e1ebe608..9850bba3 100644 --- a/test/onchain.test.ts +++ b/test/onchain.test.ts @@ -1,16 +1,15 @@ import { describe, test, expect, beforeEach } from "bun:test"; import { tbCredit, tbConfirm } from "$lib/tb"; -import { emit } from "$lib/sockets"; import { callWebhook } from "$lib/webhooks"; const mockTbCredit = tbCredit as any; const mockTbConfirm = tbConfirm as any; -const mockEmit = emit as any; const mockCallWebhook = callWebhook as any; -import { processWatchedTx, credit, catchUp } from "$lib/payments"; -import routes from "$routes/payments"; +import { processWatchedTx, catchUp } from "$lib/payments"; +import _routes from "$routes/payments"; +const routes: any = _routes; import { PaymentType } from "$lib/types"; // ===================================================================== @@ -105,7 +104,7 @@ const makeRes = () => { send: (data: any) => { sent = data; }, - code: (code: number) => ({ + code: (_code: number) => ({ send: (data: any) => { sent = data; }, -- cgit v1.2.3