Node.js based forum software built for the modern web
test: fix post test
Barış Soner Uşaklı42230300a0b7
diff --git a/test/posts.js b/test/posts.jsindex 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();});});