From 841b83f573834da64f7c904631e1b1fdaced5f68 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 19 Feb 2025 22:01:16 -0600 Subject: [PATCH] Hopeless Cashu tests leak even more --- packages/ditto/controllers/api/cashu.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/ditto/controllers/api/cashu.test.ts b/packages/ditto/controllers/api/cashu.test.ts index ee73661b..57be895d 100644 --- a/packages/ditto/controllers/api/cashu.test.ts +++ b/packages/ditto/controllers/api/cashu.test.ts @@ -140,7 +140,10 @@ Deno.test('PUT /wallet must NOT be successful: wrong request body/schema', async assertObjectMatch(body, { error: 'Bad schema' }); }); -Deno.test('PUT /wallet must NOT be successful: wallet already exists', async () => { +Deno.test('PUT /wallet must NOT be successful: wallet already exists', { + sanitizeOps: false, + sanitizeResources: false, +}, async () => { using _mock = mockFetch(); await using db = await createTestDB(); const store = db.store; @@ -178,7 +181,10 @@ Deno.test('PUT /wallet must NOT be successful: wallet already exists', async () assertEquals(body2, { error: 'You already have a wallet 😏' }); }); -Deno.test('GET /wallet must be successful', async () => { +Deno.test('GET /wallet must be successful', { + sanitizeOps: false, + sanitizeResources: false, +}, async () => { using _mock = mockFetch(); await using db = await createTestDB(); const store = db.store;