Skip to content

Commit

Permalink
fix: Remove POST from constants file
Browse files Browse the repository at this point in the history
  • Loading branch information
red-game-dev committed Nov 15, 2024
1 parent b7a0b28 commit b5f5a9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ export const TIMEOUT_ERROR = 'TimeoutError';
export const CANCELLED_ERROR = 'CanceledError';

export const GET = 'GET';
export const POST = 'POST';
export const HEAD = 'HEAD';
3 changes: 1 addition & 2 deletions test/request-handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
CHARSET_UTF_8,
CONTENT_TYPE,
GET,
POST,
} from '../src/constants';
import { ResponseErr } from '../src/response-error';

Expand Down Expand Up @@ -297,7 +296,7 @@ describe('Request Handler', () => {
{ method: 'PUT', body: undefined, expectContentType: false },
{ method: 'DELETE', body: { foo: 'bar' }, expectContentType: true },
{ method: 'PUT', body: { foo: 'bar' }, expectContentType: true },
{ method: POST, body: undefined, expectContentType: true },
{ method: 'POST', body: undefined, expectContentType: true },
{ method: GET, body: undefined, expectContentType: true },
])(
'$method request with body: $body',
Expand Down

0 comments on commit b5f5a9e

Please sign in to comment.