mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
test: fix assert.reject calls
fix tests
This commit is contained in:
@@ -605,11 +605,10 @@ describe('Post\'s', () => {
|
||||
|
||||
it('should not delete first diff of a post', async () => {
|
||||
const timestamps = await posts.diffs.list(replyPid);
|
||||
await assert.rejects(async () => {
|
||||
await posts.diffs.delete(replyPid, timestamps[0], voterUid);
|
||||
}, {
|
||||
message: '[[error:invalid-data]]',
|
||||
});
|
||||
await assert.rejects(
|
||||
posts.diffs.delete(replyPid, timestamps[0], voterUid),
|
||||
{ message: '[[error:invalid-data]]' }
|
||||
);
|
||||
});
|
||||
|
||||
it('should delete a post diff', async () => {
|
||||
|
||||
Reference in New Issue
Block a user