Skip to content

Node.js based forum software built for the modern web

test: fix getRaw test, voterUid is the owner so need to use another uid

Barış Soner Uşaklıaed03040580f
diff --git a/test/posts.js b/test/posts.js
index 5dff620633..eb75d67a77 100644
--- a/test/posts.js
+++ b/test/posts.js
@@ -872,7 +872,7 @@ describe('Post\'s', () => {
it('should fail to get raw post because post is deleted', async () => {
await posts.setPostField(pid, 'deleted', 1);
- const content = await apiPosts.getRaw({ uid: voterUid }, { pid });
+ const content = await apiPosts.getRaw({ uid: voteeUid }, { pid });
assert.strictEqual(content, null);
});