mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 12:46:11 +02:00
posts/delete cleanup
This commit is contained in:
@@ -73,6 +73,14 @@ describe('Post\'s', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should return falsy if post does not exist', function (done) {
|
||||
posts.getPostData(9999, function (err, postData) {
|
||||
assert.ifError(err);
|
||||
assert.equal(postData, null);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('voting', function () {
|
||||
it('should fail to upvote post if group does not have upvote permission', function (done) {
|
||||
privileges.categories.rescind(['posts:upvote', 'posts:downvote'], cid, 'registered-users', function (err) {
|
||||
|
||||
Reference in New Issue
Block a user