test: set thumbs during topic.post

This commit is contained in:
Barış Soner Uşaklı
2026-04-10 16:43:14 -04:00
parent ab6d462bec
commit ac8bad8bc9

View File

@@ -64,15 +64,11 @@ describe('Topic thumbs', () => {
cid: categoryObj.cid,
title: 'Test Topic Title',
content: 'The content of test topic',
thumbs: [relativeThumbPaths[0]],
});
// Touch a couple files and associate it to a topic
createFiles();
await topics.setTopicFields(topicObj.topicData.tid, {
numThumbs: 1,
thumbs: JSON.stringify([relativeThumbPaths[0]]),
});
});
it('should return bool for whether a thumb exists', async () => {