From d615273d90b4d2e2df118d7d6c38953256a9ab3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 26 Jul 2023 10:07:38 -0400 Subject: [PATCH] test: fix tests to use regular uid --- test/topics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/topics.js b/test/topics.js index 0febc38699..07af567b25 100644 --- a/test/topics.js +++ b/test/topics.js @@ -106,14 +106,14 @@ describe('Topic\'s', () => { }); it('should fail to create new topic with empty title', (done) => { - topics.post({ uid: topic.userId, title: '', content: topic.content, cid: topic.categoryId }, (err) => { + topics.post({ uid: fooUid, title: '', content: topic.content, cid: topic.categoryId }, (err) => { assert.ok(err); done(); }); }); it('should fail to create new topic with empty content', (done) => { - topics.post({ uid: topic.userId, title: topic.title, content: '', cid: topic.categoryId }, (err) => { + topics.post({ uid: fooUid, title: topic.title, content: '', cid: topic.categoryId }, (err) => { assert.ok(err); done(); }); @@ -304,7 +304,7 @@ describe('Topic\'s', () => { }); it('should fail to create new reply with empty content', (done) => { - topics.reply({ uid: topic.userId, content: '', tid: newTopic.tid }, (err) => { + topics.reply({ uid: fooUid, content: '', tid: newTopic.tid }, (err) => { assert.strictEqual(err.message, '[[error:content-too-short, 8]]'); done(); });