Skip to content

Commit 1483a0b

Browse files
committed
🚨 Add case-insensitive authority tests (#2446)
1 parent 0e759eb commit 1483a0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/lib/utils/authorship.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ describe('Logged-in user id', () => {
105105
const testCases = [
106106
{ userId: adminId, authorId: adminId },
107107
{ userId: userId1, authorId: userId1 },
108+
{ userId: 'USER123', authorId: 'user123' },
109+
{ userId: 'AuthorX', authorId: 'authorx' },
108110
];
109111
runTests('hasAuthority', testCases, ({ userId, authorId }: Authorship) => {
110112
expect(hasAuthority(userId, authorId)).toBe(true);

0 commit comments

Comments
 (0)