Skip to content

Commit d24abba

Browse files
committed
🐛 Fix misuse of toThrow() with promises (#2446)
1 parent 7089b5d commit d24abba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('ensureSessionOrRedirect', () => {
3939
},
4040
} as unknown as App.Locals;
4141

42-
await expect(ensureSessionOrRedirect(mockLocals)).resolves.not.toThrow();
42+
await expect(ensureSessionOrRedirect(mockLocals)).resolves.toBeUndefined();
4343
});
4444

4545
test('expect to redirect when user has no session', async () => {

0 commit comments

Comments
 (0)