Update activitypub.ts

This commit is contained in:
Kagami Sascha Rosylight 2023-07-09 22:36:07 +02:00
parent bdbad4605b
commit 26040c2bb0

View file

@ -265,6 +265,7 @@ describe('ActivityPub', () => {
assert.strictEqual(note.text, 'test test foo'); assert.strictEqual(note.text, 'test test foo');
assert.strictEqual(note.uri, actor2Note.id); assert.strictEqual(note.uri, actor2Note.id);
}); });
});
describe('Outbox', () => { describe('Outbox', () => {
test('Fetch non-paged outbox from IActor', async () => { test('Fetch non-paged outbox from IActor', async () => {
@ -315,6 +316,6 @@ describe('ActivityPub', () => {
const items = outbox.orderedItems as ICreate[]; const items = outbox.orderedItems as ICreate[];
assert.ok(await noteService.fetchNote(items[19].object)); assert.ok(await noteService.fetchNote(items[19].object));
assert.ok(!await noteService.fetchNote(items[20].object)); assert.ok(!await noteService.fetchNote(items[20].object));
}); });
}); });
}); });