mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closes #6015
This commit is contained in:
@@ -726,7 +726,6 @@ describe('Post\'s', function () {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe('filterPidsByCid', function () {
|
||||
it('should return pids as is if cid is falsy', function (done) {
|
||||
posts.filterPidsByCid([1, 2, 3], null, function (err, pids) {
|
||||
@@ -753,6 +752,13 @@ describe('Post\'s', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should error if user does not exist', function (done) {
|
||||
user.isReadyToPost(21123123, 1, function (err) {
|
||||
assert.equal(err.message, '[[error:no-user]]');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('post queue', function () {
|
||||
var uid;
|
||||
before(function (done) {
|
||||
|
||||
Reference in New Issue
Block a user