From 8344ac6b396a9637f30c547c14ca915d8a35137f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 24 May 2024 17:55:25 -0500 Subject: [PATCH] stats.test: insert the note for FK constraint --- src/utils/stats.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/stats.test.ts b/src/utils/stats.test.ts index 2aece80a..5f57dc4d 100644 --- a/src/utils/stats.test.ts +++ b/src/utils/stats.test.ts @@ -113,6 +113,7 @@ Deno.test('updateStats with kind 7 increments reactions count', async () => { const note = genEvent({ kind: 1 }); await updateStats({ ...db, event: note }); + await db.store.event(note); await updateStats({ ...db, event: genEvent({ kind: 7, content: '+', tags: [['e', note.id]] }) }); await updateStats({ ...db, event: genEvent({ kind: 7, content: '😂', tags: [['e', note.id]] }) });