diff --git a/packages/backend/test/unit/activitypub.ts b/packages/backend/test/unit/activitypub.ts index a685dc556d..7e63fa4dfa 100644 --- a/packages/backend/test/unit/activitypub.ts +++ b/packages/backend/test/unit/activitypub.ts @@ -386,21 +386,20 @@ describe('ActivityPub', () => { }); }); - describe('Update', async () => { - const actor = createRandomActor(); - - const post = { - '@context': 'https://www.w3.org/ns/activitystreams', - id: `${host}/users/${secureRndstr(8)}`, - type: 'Note', - attributedTo: actor.id, - to: 'https://www.w3.org/ns/activitystreams#Public', - content: 'あ', - }; - - const note = await noteService.createNote(post.id, resolver, true); - + describe('Update', () => { test('Update note', async () => { + const actor = createRandomActor(); + + const post = { + '@context': 'https://www.w3.org/ns/activitystreams', + id: `${host}/users/${secureRndstr(8)}`, + type: 'Note', + attributedTo: actor.id, + to: 'https://www.w3.org/ns/activitystreams#Public', + content: 'あ', + }; + + const note = await noteService.createNote(post.id, resolver, true); rendererService.renderNoteUpdate(await rendererService.renderNote(note!, false, true), note!, actor); }); });