Skip to content

Commit

Permalink
changed contentAnonymous to anonymous attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kmakarska committed Feb 27, 2025
1 parent 1a14541 commit 6b04be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ describe('Topic\'s', () => {
});

it('should be anonymous', async () => {
const result = await topics.reply({ uid: topic.userId, content: 'hello this is anonymous', tid: newTopic.tid, toPid: newPost.pid, contentAnonymous: anonymous });
const result = await topics.reply({ uid: topic.userId, content: 'hello this is anonymous', tid: newTopic.tid, toPid: newPost.pid, anonymous: true });
assert.ok(result);

const postData = await apiPosts.getReplies({ uid: 0 }, { pid: newPost.pid });
Expand All @@ -299,7 +299,7 @@ describe('Topic\'s', () => {
});

it('should not be anonymous', async () => {
const result = await topics.reply({ uid: topic.userId, content: 'hello this is not anonymous', tid: newTopic.tid, toPid: newPost.pid, contentAnonymous: null });
const result = await topics.reply({ uid: topic.userId, content: 'hello this is not anonymous', tid: newTopic.tid, toPid: newPost.pid, anonymous: false });
assert.ok(result);

const postData = await apiPosts.getReplies({ uid: 0 }, { pid: newPost.pid });
Expand Down

0 comments on commit 6b04be1

Please sign in to comment.