mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: hardcoded tid in topic thumbs test
This commit is contained in:
@@ -357,7 +357,7 @@ describe('Topic thumbs', () => {
|
||||
});
|
||||
|
||||
it('should fail with a non-existant tid', async () => {
|
||||
const { response } = await helpers.uploadFile(`${nconf.get('url')}/api/v3/topics/4/thumbs`, path.join(__dirname, '../files/test.png'), {}, adminJar, adminCSRF);
|
||||
const { response } = await helpers.uploadFile(`${nconf.get('url')}/api/v3/topics/${Number.MAX_SAFE_INTEGER}/thumbs`, path.join(__dirname, '../files/test.png'), {}, adminJar, adminCSRF);
|
||||
assert.strictEqual(response.statusCode, 404);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user