From 34bbf6e39a10077dd6b42692b20fde6a18df40a7 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Fri, 5 Jul 2024 17:48:34 -0300 Subject: [PATCH] test(pipeline): refactor to use createTestDB instead of getTestDB --- src/pipeline.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipeline.test.ts b/src/pipeline.test.ts index 64cb523b..3a196c16 100644 --- a/src/pipeline.test.ts +++ b/src/pipeline.test.ts @@ -1,11 +1,11 @@ import { assertEquals } from '@std/assert'; import { generateSecretKey } from 'nostr-tools'; -import { genEvent, getTestDB } from '@/test.ts'; +import { createTestDB, genEvent, getTestDB } from '@/test.ts'; import { handleZaps } from '@/pipeline.ts'; Deno.test('store one zap receipt in nostr_events; convert it into event_zaps table format and store it', async () => { - await using db = await getTestDB(); + await using db = await createTestDB(); const kysely = db.kysely; const sk = generateSecretKey();