mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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}`,
|
userslug: `${preferredUsername}@${hostname}`,
|
||||||
displayname: name,
|
displayname: name,
|
||||||
fullname: name,
|
fullname: name,
|
||||||
joindate: new Date(published).getTime(),
|
joindate: new Date(published).getTime() || Date.now(),
|
||||||
picture,
|
picture,
|
||||||
status: 'offline',
|
status: 'offline',
|
||||||
'icon:text': (preferredUsername[0] || '').toUpperCase(),
|
'icon:text': (preferredUsername[0] || '').toUpperCase(),
|
||||||
|
|||||||
@@ -322,7 +322,11 @@ describe('API', async () => {
|
|||||||
activitypub._cache.set(`0;https://example.org/foobar`, {
|
activitypub._cache.set(`0;https://example.org/foobar`, {
|
||||||
id: 'https://example.org/foobar',
|
id: 'https://example.org/foobar',
|
||||||
name: 'foobar',
|
name: 'foobar',
|
||||||
publicKey: 'secretcat',
|
publicKey: {
|
||||||
|
id: `https://example.org/foobar#key`,
|
||||||
|
owner: `https://example.org/foobar`,
|
||||||
|
publicKeyPem: 'secretcat',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
setup = true;
|
setup = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user