diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index e9a564a..d5954d8 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -915,14 +915,6 @@ describe('call builder', () => { .body('test') .build(), ).toThrow(); - - expect(() => - buildCall() // - .path('/') - .method('delete') - .body('test') - .build(), - ).toThrow(); }); it('throws when trying to add multiple parsers', async () => { diff --git a/src/index.ts b/src/index.ts index 9306215..d9174f8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -253,7 +253,7 @@ export class CallBuilder< invariant(getPath != null, 'No path set'); invariant(method != null, 'No method set'); - if (getBody && ['head', 'get', 'delete'].includes(method)) { + if (getBody && ['head', 'get'].includes(method)) { throw new Error(`Can't include body in "${method}" request`); }