mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: test for topicThumbs
This commit is contained in:
@@ -94,7 +94,7 @@ describe('Topic thumbs', () => {
|
|||||||
assert.deepStrictEqual(thumbs, [{
|
assert.deepStrictEqual(thumbs, [{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'test.png',
|
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,
|
id: 1,
|
||||||
name: 'test.png',
|
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,
|
id: 2,
|
||||||
name: 'test.png',
|
name: 'test.png',
|
||||||
url: `${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
|
url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[0]}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
@@ -163,7 +163,7 @@ describe('Topic thumbs', () => {
|
|||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: 'test2.png',
|
name: 'test2.png',
|
||||||
url: `${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
|
url: `${nconf.get('relative_path')}${nconf.get('upload_url')}${relativeThumbPaths[1]}`,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user