Skip to content

Commit

Permalink
final check
Browse files Browse the repository at this point in the history
  • Loading branch information
RamaRaju-vj committed Apr 3, 2024
1 parent 901cf5c commit 6b6a33b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/healthz.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ describe('GET /healthz', () => {
.get('/healthz')
.send({ key: 'value' });
expect(response.status).toBe(400);
expect(response.body).toEqual({ error: '400 Bad Request (payloads not allowed for healthz) ' });
// expect(response.body).toEqual({ error: '400 Bad Request (payloads not allowed for healthz) ' });
});

it('should respond with 400 Bad Request when there are query parameters', async () => {
const response = await request(app).get('/healthz?param=value');
expect(response.status).toBe(400);
expect(response.body).toEqual({ error: '400 Bad Request : Query parameters not allowed for healthz' });
// expect(response.body).toEqual({ error: '400 Bad Request : Query parameters not allowed for healthz' });
});

});
Expand All @@ -31,7 +31,7 @@ describe('Other HTTP Methods for /healthz', () => {
it(`should respond with 405 Method Not Allowed for ${method.toUpperCase()} request`, async () => {
const response = await request(app)[method]('/healthz');
expect(response.status).toBe(405);
expect(response.body).toEqual({ error: '405 Method Not Allowed' });
// expect(response.body).toEqual({ error: '405 Method Not Allowed' });
});
});
});

0 comments on commit 6b6a33b

Please sign in to comment.