From e817d5beda618415b331eef7e5b6288b12b7180f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 11 Jan 2021 14:31:47 -0500 Subject: [PATCH] fix: test for topicThumbs --- test/topicThumbs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]}`, }, ]); });