test invalid data

v1.18.x
barisusakli 8 years ago
parent cd448f90cd
commit 63b3c29a1a

@ -647,6 +647,13 @@ describe('Topic\'s', function () {
done);
});
it('should fail with invalid data', function (done) {
socketTopics.bookmark({ uid: topic.userId }, null, function (err) {
assert.equal(err.message, '[[error:invalid-data]]');
done();
});
});
it('should have 12 replies', function (done) {
assert.equal(12, replies.length);
done();

Loading…
Cancel
Save