fix: hardcoded tid in topic thumbs test

This commit is contained in:
Julian Lam
2024-07-05 14:01:58 -04:00
parent f629b20f2d
commit 78a6c60cf5

View File

@@ -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);
});