mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: fix broken test in category follows
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user