diff --git a/src/presentation/http/router/auth.test.ts b/src/presentation/http/router/auth.test.ts index 4f503740..ed882a77 100644 --- a/src/presentation/http/router/auth.test.ts +++ b/src/presentation/http/router/auth.test.ts @@ -4,10 +4,11 @@ describe('Auth API', () => { describe('POST /auth', () => { test('Returns 401 when session is not valid', async () => { const expectedStatus = 401 - + const refreshToken = "not-validToken"; const response = await global.api?.fakeRequest({ method: 'POST', url: '/auth', // write not authorized data + body: { token: refreshToken } }) expect(response?.statusCode).toBe(expectedStatus)