mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-26 10:43:08 +02:00
remove extra resolving in tests
This commit is contained in:
parent
71d74676f0
commit
7bf318ae98
1 changed files with 0 additions and 18 deletions
|
@ -188,12 +188,6 @@ describe('ActivityPub', () => {
|
||||||
resolver._register(actor.id, actor);
|
resolver._register(actor.id, actor);
|
||||||
resolver._register(actor.outbox as string, outbox);
|
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);
|
await personService.createPerson(actor.id, resolver);
|
||||||
|
|
||||||
for (const item of outbox.orderedItems as ICreate[]) {
|
for (const item of outbox.orderedItems as ICreate[]) {
|
||||||
|
@ -213,12 +207,6 @@ describe('ActivityPub', () => {
|
||||||
resolver._register(actor.outbox as string, outbox);
|
resolver._register(actor.outbox as string, outbox);
|
||||||
resolver._register(outbox.first as string, page);
|
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);
|
await personService.createPerson(actor.id, resolver);
|
||||||
|
|
||||||
for (const item of page.orderedItems as ICreate[]) {
|
for (const item of page.orderedItems as ICreate[]) {
|
||||||
|
@ -236,12 +224,6 @@ describe('ActivityPub', () => {
|
||||||
resolver._register(actor.id, actor);
|
resolver._register(actor.id, actor);
|
||||||
resolver._register(actor.outbox as string, outbox);
|
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);
|
await personService.createPerson(actor.id, resolver);
|
||||||
|
|
||||||
const items = outbox.orderedItems as ICreate[];
|
const items = outbox.orderedItems as ICreate[];
|
||||||
|
|
Loading…
Reference in a new issue