stats.test: insert the note for FK constraint
This commit is contained in:
parent
c6dea07ac3
commit
8344ac6b39
|
@ -113,6 +113,7 @@ Deno.test('updateStats with kind 7 increments reactions count', async () => {
|
||||||
|
|
||||||
const note = genEvent({ kind: 1 });
|
const note = genEvent({ kind: 1 });
|
||||||
await updateStats({ ...db, event: note });
|
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]] }) });
|
||||||
await updateStats({ ...db, event: genEvent({ kind: 7, content: '😂', tags: [['e', note.id]] }) });
|
await updateStats({ ...db, event: genEvent({ kind: 7, content: '😂', tags: [['e', note.id]] }) });
|
||||||
|
|
Loading…
Reference in New Issue