stats.test: insert the note for FK constraint

This commit is contained in:
Alex Gleason 2024-05-24 17:55:25 -05:00
parent c6dea07ac3
commit 8344ac6b39
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 0 deletions

View File

@ -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]] }) });