We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d396483 commit 18c27bbCopy full SHA for 18c27bb
src/test/lib/utils/authorship.test.ts
@@ -135,12 +135,11 @@ describe('Logged-in user id', () => {
135
const testCases = [
136
{ isPublished: true, userId: adminId, authorId: adminId },
137
{ isPublished: true, userId: adminId, authorId: userId1 },
138
+ { isPublished: true, userId: adminId, authorId: userId2 },
139
{ isPublished: true, userId: userId1, authorId: adminId },
140
{ isPublished: true, userId: userId1, authorId: userId1 },
141
{ isPublished: true, userId: userId2, authorId: userId1 },
142
{ isPublished: true, userId: userId1, authorId: userId2 },
- { isPublished: true, userId: adminId, authorId: userId1 },
143
- { isPublished: true, userId: adminId, authorId: userId2 },
144
];
145
runTests('canRead', testCases, ({ isPublished, userId, authorId }: AuthorshipForRead) => {
146
expect(canRead(isPublished, userId, authorId)).toBe(true);
0 commit comments