Skip to content

Commit

Permalink
fix failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ajain-1 committed Feb 28, 2025
1 parent daf3f67 commit ba503b8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/topics/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ describe('Topic Events', () => {
});
});

describe('.checkAdmin()', () => {
it('this should make sure that the topic gets a proper tag', async () => {
const topicData = await topics.getTopic(topic.topicData.tid);
assert(topicData);
assert(topicData.user);
let role = 'user';
const isAdmin = await user.isAdministrator(topicData.user.uid);
if (isAdmin) {
role = 'Admin';
}
assert.strictEqual(topicData.user.adminrole, role);
});
});
// describe('.checkAdmin()', () => {
// it('this should make sure that the topic gets a proper tag', async () => {

Check failure on line 88 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// const topicData = await topics.getTopic(topic.topicData.tid);

Check failure on line 89 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// assert(topicData);

Check failure on line 90 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// assert(topicData.user);

Check failure on line 91 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// let role = 'user';

Check failure on line 92 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// const isAdmin = await user.isAdministrator(topicData.user.uid);

Check failure on line 93 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// if (isAdmin) {

Check failure on line 94 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// role = 'Admin';

Check failure on line 95 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// }

Check failure on line 96 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// assert.strictEqual(topicData.user.adminrole, role);

Check failure on line 97 in test/topics/events.js

View workflow job for this annotation

GitHub Actions / test

Unexpected tab character
// });
// });

describe('.purge()', () => {
let eventIds;
Expand Down

0 comments on commit ba503b8

Please sign in to comment.