test: fix broken test in category follows

This commit is contained in:
Julian Lam
2024-07-05 13:33:00 -04:00
parent 8ecbb5cc5c
commit 4949d6c4e5
2 changed files with 6 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ Mocks.profile = async (actors) => {
userslug: `${preferredUsername}@${hostname}`,
displayname: name,
fullname: name,
joindate: new Date(published).getTime(),
joindate: new Date(published).getTime() || Date.now(),
picture,
status: 'offline',
'icon:text': (preferredUsername[0] || '').toUpperCase(),

View File

@@ -322,7 +322,11 @@ describe('API', async () => {
activitypub._cache.set(`0;https://example.org/foobar`, {
id: 'https://example.org/foobar',
name: 'foobar',
publicKey: 'secretcat',
publicKey: {
id: `https://example.org/foobar#key`,
owner: `https://example.org/foobar`,
publicKeyPem: 'secretcat',
},
});
setup = true;