diff --git a/test/posts.js b/test/posts.js index e52b5cdf23..20403e24cf 100644 --- a/test/posts.js +++ b/test/posts.js @@ -184,8 +184,8 @@ describe('Post\'s', () => { it('should get upvoters', (done) => { socketPosts.getUpvoters({ uid: globalModUid }, [postData.pid], (err, data) => { assert.ifError(err); - assert.equal(data[0].otherCount, 0); - assert.equal(data[0].usernames, 'upvoter'); + assert.equal(data.otherCount, 0); + assert.equal(data.usernames, 'upvoter'); done(); }); });