Skip to content

Commit

Permalink
added comments to testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
mrahmed2026 authored and mrahmed2026 committed Sep 5, 2024
1 parent 142cac2 commit 96d0ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,7 @@ describe('Flags', () => {
assert.strictEqual(statusCode, 200, `${opts.method.toUpperCase()} ${opts.uri} => ${statusCode}`);
}
});
// COPILOT ASSISTED CODE
describe('.getFlagIdByTarget()', () => {
it('should return the flagId for a post', async () => {
// Create a new post
Expand Down Expand Up @@ -1203,7 +1204,6 @@ describe('Flags', () => {
});

it('should NOT allow access to privileged endpoints to moderators if the flag target is a post in a cid they DO NOT moderate', async () => {
// This is a new category the user will moderate, but the flagged post is in a different category
const { cid } = await Categories.create({
name: utils.generateUUID(),
});
Expand Down

0 comments on commit 96d0ea7

Please sign in to comment.