From 63b3c29a1a2b9d2a4fd679047f5890b6f07d7eeb Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 2 Mar 2017 19:21:56 +0300 Subject: [PATCH] test invalid data --- test/topics.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/topics.js b/test/topics.js index ea2ac6ecfc..5a65cf8ec8 100644 --- a/test/topics.js +++ b/test/topics.js @@ -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();