From 964d531582fbdfad9b1f1d96441de21195365c9d Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 12 Nov 2014 01:22:50 -0500 Subject: [PATCH] fix test really --- tests/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }); });