diff options
| author | Adam Soltys <[email protected]> | 2026-02-28 15:16:20 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-28 15:16:20 -0800 |
| commit | 32f01e3e328db0006a55c6324625b49d60244b66 (patch) | |
| tree | b97866549b919964957365e1e05681e85af7021a /test/onchain.test.ts | |
| parent | a1632ae402d11fdd7ffc360de97c55e0b4fad677 (diff) | |
| download | coinos-server-32f01e3e328db0006a55c6324625b49d60244b66.tar.gz coinos-server-32f01e3e328db0006a55c6324625b49d60244b66.zip | |
fix typescript issues
Diffstat (limited to 'test/onchain.test.ts')
| -rw-r--r-- | test/onchain.test.ts | 9 |
1 files changed, 4 insertions, 5 deletions
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; }, |
