Skip to content

Node.js based forum software built for the modern web

fix: another topic thumb test fix

Julian Lam782bef5eeca5
diff --git a/test/topicThumbs.js b/test/topicThumbs.js
index 4277e0726a..c2c56c4a2f 100644
--- a/test/topicThumbs.js
+++ b/test/topicThumbs.js
@@ -141,6 +141,7 @@ describe('Topic thumbs', () => {
await topics.thumbs.associate({
id: uuid,
path: relativeThumbPaths[1],
+ score: 5,
});
const exists = await db.isSortedSetMember(`draft:${uuid}:thumbs`, relativeThumbPaths[1]);
@@ -218,13 +219,13 @@ describe('Topic thumbs', () => {
},
{
id: 2,
- name: 'test2.png',
- url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
+ name: 'example.org',
+ url: 'https://example.org',
},
{
id: 2,
- name: 'example.org',
- url: 'https://example.org',
+ name: 'test2.png',
+ url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
},
]);
});