feat: #7743, posts module

This commit is contained in:
Barış Soner Uşaklı
2019-07-17 00:17:21 -04:00
parent 930ffd074f
commit 1b2b308a7e
6 changed files with 262 additions and 457 deletions

View File

@@ -901,6 +901,14 @@ describe('Post\'s', function () {
done();
});
});
it('should filter pids by multiple cids', function (done) {
posts.filterPidsByCid([postData.pid, 100, 101], [cid], function (err, pids) {
assert.ifError(err);
assert.deepEqual([postData.pid], pids);
done();
});
});
});
it('should error if user does not exist', function (done) {