mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 05:37:35 +02:00
test: another delete after create
This commit is contained in:
@@ -197,13 +197,13 @@ describe('Categories', () => {
|
|||||||
content: 'The content of test topic',
|
content: 'The content of test topic',
|
||||||
tags: ['nodebb'],
|
tags: ['nodebb'],
|
||||||
});
|
});
|
||||||
const data = await Topics.post({
|
await Topics.post({
|
||||||
uid: posterUid,
|
uid: posterUid,
|
||||||
cid: categoryObj.cid,
|
cid: categoryObj.cid,
|
||||||
title: 'will delete',
|
title: 'will delete',
|
||||||
content: 'The content of deleted topic',
|
content: 'The content of deleted topic',
|
||||||
|
deleted: 1,
|
||||||
});
|
});
|
||||||
await Topics.delete(data.topicData.tid, adminUid);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should get recent replies in category', (done) => {
|
it('should get recent replies in category', (done) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user