mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-04-12 23:48:06 +02:00
test: set thumbs during topic.post
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user