test: a few additional tests for announce handling

This commit is contained in:
Julian Lam
2025-05-14 11:49:12 -04:00
parent 5b118904c9
commit 61f6806b6a
3 changed files with 81 additions and 1 deletions

View File

@@ -162,6 +162,8 @@ Helpers.mocks.announce = (override = {}) => {
if (!object) {
({ id: object } = Helpers.mocks.note());
}
delete override.actor;
delete override.object;
const activity = {
'@context': 'https://www.w3.org/ns/activitystreams',
@@ -171,6 +173,7 @@ Helpers.mocks.announce = (override = {}) => {
cc: [`${actor}/followers`],
actor,
object,
...override,
};
return { activity };