From 7bf318ae989873814ca5848287fe7b7437f3f22c Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 8 Jul 2023 15:13:19 +0200 Subject: [PATCH] remove extra resolving in tests --- packages/backend/test/unit/activitypub.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/backend/test/unit/activitypub.ts b/packages/backend/test/unit/activitypub.ts index 2b4343734..530b6a911 100644 --- a/packages/backend/test/unit/activitypub.ts +++ b/packages/backend/test/unit/activitypub.ts @@ -188,12 +188,6 @@ describe('ActivityPub', () => { resolver._register(actor.id, actor); resolver._register(actor.outbox as string, outbox); - // XXX: This shouldn't be needed as the collection already has the full information - // But somehow the resolver currently doesn't use it at all and always fetches again - for (const item of outbox.orderedItems as IObject[]) { - resolver._register(item.id!, item); - } - await personService.createPerson(actor.id, resolver); for (const item of outbox.orderedItems as ICreate[]) { @@ -213,12 +207,6 @@ describe('ActivityPub', () => { resolver._register(actor.outbox as string, outbox); resolver._register(outbox.first as string, page); - // XXX: This shouldn't be needed as the collection already has the full information - // But somehow the resolver currently doesn't use it at all and always fetches again - for (const item of page.orderedItems as IObject[]) { - resolver._register(item.id!, item); - } - await personService.createPerson(actor.id, resolver); for (const item of page.orderedItems as ICreate[]) { @@ -236,12 +224,6 @@ describe('ActivityPub', () => { resolver._register(actor.id, actor); resolver._register(actor.outbox as string, outbox); - // XXX: This shouldn't be needed as the collection already has the full information - // But somehow the resolver currently doesn't use it at all and always fetches again - for (const item of outbox.orderedItems as IObject[]) { - resolver._register(item.id!, item); - } - await personService.createPerson(actor.id, resolver); const items = outbox.orderedItems as ICreate[];