Skip to content

Commit

Permalink
fixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
LawrenceLau2020 committed Oct 31, 2024
1 parent 805e6e2 commit ae01cdf
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ describe('INTEGRATION - headerHandler middleware', () => {
it('should set headers with expected values', async () => {
const response = await request.get('/v2/health');
// Remember to use lower case for header keys
expect(response.header['access-control-allow-origin']).toBe('*');
expect(response.header['access-control-allow-methods']).toBe('GET,PUT,PATCH,POST,DELETE');
expect(response.header['access-control-allow-headers']).toBe(
'Content-Type, Accept, Authorization',
Expand Down

0 comments on commit ae01cdf

Please sign in to comment.