Skip to content

Node.js based forum software built for the modern web

fix: test for topicThumbs

Julian Lame817d5beda61
diff --git a/test/topicThumbs.js b/test/topicThumbs.js
index 7be9e56f89..bc952139d3 100644
--- a/test/topicThumbs.js
+++ b/test/topicThumbs.js
@@ -94,7 +94,7 @@ describe('Topic thumbs', () => {
assert.deepStrictEqual(thumbs, [{
id: 1,
name: 'test.png',
- url: `${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
+ url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
}]);
});
@@ -104,7 +104,7 @@ describe('Topic thumbs', () => {
[{
id: 1,
name: 'test.png',
- url: `${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
+ url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
}],
[],
]);
@@ -153,7 +153,7 @@ describe('Topic thumbs', () => {
{
id: 2,
name: 'test.png',
- url: `${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
+ url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
},
{
id: 2,
@@ -163,7 +163,7 @@ describe('Topic thumbs', () => {
{
id: 2,
name: 'test2.png',
- url: `${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
+ url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
},
]);
});