We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f64f24c commit 7c706fdCopy full SHA for 7c706fd
1 file changed
packages/server/api/test/integration/cloud/cloud/cloud-auth.test.ts
@@ -54,7 +54,7 @@ describe('getVerifiedUser', () => {
54
});
55
56
it('should verify token from Authorization header', () => {
57
- const payload = { sub: '123' } as any;
+ const payload = { sub: '123' };
58
(jwt.verify as jest.Mock).mockReturnValue(payload);
59
const mockRequest = createMockRequest({
60
headers: { authorization: 'Bearer header-token' },
@@ -68,7 +68,7 @@ describe('getVerifiedUser', () => {
68
69
70
it('should verify token from cookie when Authorization header is missing', () => {
71
- const payload = { sub: 'abc' } as any;
+ const payload = { sub: 'abc' };
72
73
74
headers: {},
0 commit comments