Skip to content

Commit

Permalink
Fix a typo in handlers.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
maple3142 authored Aug 17, 2021
1 parent 4b53123 commit 7d726d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/handlers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('default proxy error handler', () => {

it('should end the response and return error message', () => {
proxyError(mockError, mockReq, mockRes, proxyOptions);
expect(errorMessage).toBe('Error occured while trying to proxy: localhost:3000/api');
expect(errorMessage).toBe('Error occurred while trying to proxy: localhost:3000/api');
});

it('should not set the http status code to: 500 if headers have already been sent', () => {
Expand All @@ -131,7 +131,7 @@ describe('default proxy error handler', () => {
it('should end the response and return error message', () => {
mockRes.headersSent = true;
proxyError(mockError, mockReq, mockRes, proxyOptions);
expect(errorMessage).toBe('Error occured while trying to proxy: localhost:3000/api');
expect(errorMessage).toBe('Error occurred while trying to proxy: localhost:3000/api');
});

it('should re-throw error from http-proxy when target is missing', () => {
Expand Down

0 comments on commit 7d726d5

Please sign in to comment.