diff --git a/tests/topics.js b/tests/topics.js index 4197f54b6e..840a73bb50 100644 --- a/tests/topics.js +++ b/tests/topics.js @@ -75,7 +75,7 @@ describe('Topic\'s', function() { it('should fail to create new topic with non-existant category id', function(done) { topics.post({uid: topic.userId, title: topic.title, content: topic.content, cid: 99}, function(err, result) { - assert.equal(err, '[[error:no-category]]', 'received no error'); + assert.equal(err.message, '[[error:no-category]]', 'received no error'); done(); }); });