From 42230300a0b7d5959f1fca5d236c3dbc7b115ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 31 May 2024 11:59:46 -0400 Subject: [PATCH] test: fix post test --- test/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }); });