From 9db50a3eda5e00c85e624dabedf92b4506b83b02 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 31 Oct 2016 11:48:58 +0300 Subject: [PATCH] fix getReplies test --- test/topics.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/topics.js b/test/topics.js index 2abe344102..2df7635a5f 100644 --- a/test/topics.js +++ b/test/topics.js @@ -126,13 +126,13 @@ describe('Topic\'s', function () { assert.equal(err, null, 'was created with error'); assert.ok(result); - socketPosts.getReplies({uid: 0}, newPost.pid, function (err, response) { + socketPosts.getReplies({uid: 0}, newPost.pid, function (err, postData) { assert.equal(err, null, 'posts.getReplies returned error'); - assert.ok(response); + assert.ok(postData); - assert.equal(response.posts.length, 1, 'should have 1 result'); - assert.equal(response.posts[0].pid, result.pid, 'result should be the reply we added'); + assert.equal(postData.length, 1, 'should have 1 result'); + assert.equal(postData[0].pid, result.pid, 'result should be the reply we added'); done(); });