Skip to content

Commit 665ad8b

Browse files
committed
test: update snapshots
1 parent 9c08db9 commit 665ad8b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

test/__snapshots__/index.spec.ts.snap

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ exports[`v2 should generate: test/generated/v2/core/OpenAPI.ts 1`] = `
207207
/* eslint-disable */
208208
import type { ApiRequestOptions } from './ApiRequestOptions';
209209

210-
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
210+
type Resolver<T> = (options: ApiRequestOptions) => Promise<T | undefined>;
211211
type Headers = Record<string, string>;
212212

213213
export type OpenAPIConfig = {
@@ -274,7 +274,11 @@ export const isBlob = (value: any): value is Blob => {
274274
};
275275

276276
export const isFormData = (value: any): value is FormData => {
277-
return value instanceof FormData;
277+
try {
278+
return value instanceof FormData
279+
} catch (e) {
280+
return false
281+
}
278282
};
279283

280284
export const base64 = (str: string): string => {
@@ -565,7 +569,7 @@ exports[`v2 should generate: test/generated/v2/index.ts 1`] = `
565569
/* istanbul ignore file */
566570
/* tslint:disable */
567571
/* eslint-disable */
568-
export { ApiError } from './core/ApiError';
572+
export { ApiError as OpenAPIError } from './core/ApiError';
569573
export { CancelablePromise, CancelError } from './core/CancelablePromise';
570574
export { OpenAPI } from './core/OpenAPI';
571575
export type { OpenAPIConfig } from './core/OpenAPI';
@@ -3300,7 +3304,7 @@ exports[`v3 should generate: test/generated/v3/core/OpenAPI.ts 1`] = `
33003304
/* eslint-disable */
33013305
import type { ApiRequestOptions } from './ApiRequestOptions';
33023306

3303-
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
3307+
type Resolver<T> = (options: ApiRequestOptions) => Promise<T | undefined>;
33043308
type Headers = Record<string, string>;
33053309

33063310
export type OpenAPIConfig = {
@@ -3367,7 +3371,11 @@ export const isBlob = (value: any): value is Blob => {
33673371
};
33683372

33693373
export const isFormData = (value: any): value is FormData => {
3370-
return value instanceof FormData;
3374+
try {
3375+
return value instanceof FormData
3376+
} catch (e) {
3377+
return false
3378+
}
33713379
};
33723380

33733381
export const base64 = (str: string): string => {
@@ -3658,7 +3666,7 @@ exports[`v3 should generate: test/generated/v3/index.ts 1`] = `
36583666
/* istanbul ignore file */
36593667
/* tslint:disable */
36603668
/* eslint-disable */
3661-
export { ApiError } from './core/ApiError';
3669+
export { ApiError as OpenAPIError } from './core/ApiError';
36623670
export { CancelablePromise, CancelError } from './core/CancelablePromise';
36633671
export { OpenAPI } from './core/OpenAPI';
36643672
export type { OpenAPIConfig } from './core/OpenAPI';

0 commit comments

Comments
 (0)