mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: another topic thumb test fix
This commit is contained in:
@@ -141,6 +141,7 @@ describe('Topic thumbs', () => {
|
|||||||
await topics.thumbs.associate({
|
await topics.thumbs.associate({
|
||||||
id: uuid,
|
id: uuid,
|
||||||
path: relativeThumbPaths[1],
|
path: relativeThumbPaths[1],
|
||||||
|
score: 5,
|
||||||
});
|
});
|
||||||
|
|
||||||
const exists = await db.isSortedSetMember(`draft:${uuid}:thumbs`, relativeThumbPaths[1]);
|
const exists = await db.isSortedSetMember(`draft:${uuid}:thumbs`, relativeThumbPaths[1]);
|
||||||
@@ -218,13 +219,13 @@ describe('Topic thumbs', () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: 'test2.png',
|
name: 'example.org',
|
||||||
url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
|
url: 'https://example.org',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: 'example.org',
|
name: 'test2.png',
|
||||||
url: 'https://example.org',
|
url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user