mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
stats.test: insert the note for FK constraint
This commit is contained in:
parent
c6dea07ac3
commit
8344ac6b39
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue