Skip to content

Commit 819fab4

Browse files
committed
fix: types in test
1 parent 4aafe2b commit 819fab4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/respect-core/src/utils/__tests__/api-fetcher.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import {
66
ApiFetcher,
77
} from '../api-fetcher.js';
88

9+
import type { OperationMethod } from '../../types.js';
10+
911
describe('normalizeHeaders', () => {
1012
it('should return empty object if no headers', () => {
1113
const result = normalizeHeaders(undefined);
@@ -158,7 +160,7 @@ describe('ApiFetcher', () => {
158160
const requestData = {
159161
serverUrl: undefined,
160162
path: '/pets',
161-
method: 'get',
163+
method: 'get' as OperationMethod,
162164
parameters: [],
163165
requestBody: {},
164166
};

0 commit comments

Comments
 (0)