mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 06:37:20 +02:00
test: set thumbs during topic.post
This commit is contained in:
@@ -64,15 +64,11 @@ describe('Topic thumbs', () => {
|
|||||||
cid: categoryObj.cid,
|
cid: categoryObj.cid,
|
||||||
title: 'Test Topic Title',
|
title: 'Test Topic Title',
|
||||||
content: 'The content of test topic',
|
content: 'The content of test topic',
|
||||||
|
thumbs: [relativeThumbPaths[0]],
|
||||||
});
|
});
|
||||||
|
|
||||||
// Touch a couple files and associate it to a topic
|
// Touch a couple files and associate it to a topic
|
||||||
createFiles();
|
createFiles();
|
||||||
|
|
||||||
await topics.setTopicFields(topicObj.topicData.tid, {
|
|
||||||
numThumbs: 1,
|
|
||||||
thumbs: JSON.stringify([relativeThumbPaths[0]]),
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return bool for whether a thumb exists', async () => {
|
it('should return bool for whether a thumb exists', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user