We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aafe2b commit 819fab4Copy full SHA for 819fab4
packages/respect-core/src/utils/__tests__/api-fetcher.test.ts
@@ -6,6 +6,8 @@ import {
6
ApiFetcher,
7
} from '../api-fetcher.js';
8
9
+import type { OperationMethod } from '../../types.js';
10
+
11
describe('normalizeHeaders', () => {
12
it('should return empty object if no headers', () => {
13
const result = normalizeHeaders(undefined);
@@ -158,7 +160,7 @@ describe('ApiFetcher', () => {
158
160
const requestData = {
159
161
serverUrl: undefined,
162
path: '/pets',
- method: 'get',
163
+ method: 'get' as OperationMethod,
164
parameters: [],
165
requestBody: {},
166
};
0 commit comments