Skip to content

Commit e44819b

Browse files
committed
♻️ Remove duplicated tests (#2446)
1 parent f4e347f commit e44819b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -221,20 +221,6 @@ describe('Logged-in user id', () => {
221221
});
222222

223223
describe('when the user is not the author', () => {
224-
describe('and the user is admin', () => {
225-
const testCases = [
226-
{ userId: adminId, authorId: userId1, role: Roles.ADMIN, isPublished: false },
227-
{ userId: adminId, authorId: userId2, role: Roles.ADMIN, isPublished: false },
228-
];
229-
runTests(
230-
'canEdit',
231-
testCases,
232-
({ userId, authorId, role, isPublished }: AuthorshipForEdit) => {
233-
expect(canEdit(userId, authorId, role, isPublished)).toBe(false);
234-
},
235-
);
236-
});
237-
238224
describe('and the user is not admin', () => {
239225
const testCases = [
240226
{ userId: userId1, authorId: adminId, role: Roles.USER, isPublished: true },

0 commit comments

Comments
 (0)