Skip to content

Commit bf47b5f

Browse files
committed
yarn test-all(update-snapshots)
Signed-off-by: Sora Morimoto <sora@morimoto.io>
1 parent ac99885 commit bf47b5f

File tree

96 files changed

+96
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+96
-96
lines changed

tests/generated/v2.0/adafruit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class HttpClient<SecurityDataType = unknown> {
346346
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
347347
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
348348
}).then(async (response) => {
349-
const r = response as HttpResponse<T, E>;
349+
const r = response.clone() as HttpResponse<T, E>;
350350
r.data = null as unknown as T;
351351
r.error = null as unknown as E;
352352

tests/generated/v2.0/another-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export class HttpClient<SecurityDataType = unknown> {
322322
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
323323
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
324324
}).then(async (response) => {
325-
const r = response as HttpResponse<T, E>;
325+
const r = response.clone() as HttpResponse<T, E>;
326326
r.data = null as unknown as T;
327327
r.error = null as unknown as E;
328328

tests/generated/v2.0/another-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export class HttpClient<SecurityDataType = unknown> {
210210
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
211211
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
212212
}).then(async (response) => {
213-
const r = response as HttpResponse<T, E>;
213+
const r = response.clone() as HttpResponse<T, E>;
214214
r.data = null as unknown as T;
215215
r.error = null as unknown as E;
216216

tests/generated/v2.0/api-with-examples.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class HttpClient<SecurityDataType = unknown> {
189189
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
190190
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
191191
}).then(async (response) => {
192-
const r = response as HttpResponse<T, E>;
192+
const r = response.clone() as HttpResponse<T, E>;
193193
r.data = null as unknown as T;
194194
r.error = null as unknown as E;
195195

tests/generated/v2.0/authentiq.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class HttpClient<SecurityDataType = unknown> {
229229
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
230230
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
231231
}).then(async (response) => {
232-
const r = response as HttpResponse<T, E>;
232+
const r = response.clone() as HttpResponse<T, E>;
233233
r.data = null as unknown as T;
234234
r.error = null as unknown as E;
235235

tests/generated/v2.0/enums.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class HttpClient<SecurityDataType = unknown> {
248248
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
249249
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
250250
}).then(async (response) => {
251-
const r = response as HttpResponse<T, E>;
251+
const r = response.clone() as HttpResponse<T, E>;
252252
r.data = null as unknown as T;
253253
r.error = null as unknown as E;
254254

tests/generated/v2.0/example1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export class HttpClient<SecurityDataType = unknown> {
226226
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
227227
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
228228
}).then(async (response) => {
229-
const r = response as HttpResponse<T, E>;
229+
const r = response.clone() as HttpResponse<T, E>;
230230
r.data = null as unknown as T;
231231
r.error = null as unknown as E;
232232

tests/generated/v2.0/file-formdata-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class HttpClient<SecurityDataType = unknown> {
189189
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
190190
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
191191
}).then(async (response) => {
192-
const r = response as HttpResponse<T, E>;
192+
const r = response.clone() as HttpResponse<T, E>;
193193
r.data = null as unknown as T;
194194
r.error = null as unknown as E;
195195

tests/generated/v2.0/furkot-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export class HttpClient<SecurityDataType = unknown> {
262262
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
263263
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
264264
}).then(async (response) => {
265-
const r = response as HttpResponse<T, E>;
265+
const r = response.clone() as HttpResponse<T, E>;
266266
r.data = null as unknown as T;
267267
r.error = null as unknown as E;
268268

tests/generated/v2.0/giphy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export class HttpClient<SecurityDataType = unknown> {
446446
signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
447447
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
448448
}).then(async (response) => {
449-
const r = response as HttpResponse<T, E>;
449+
const r = response.clone() as HttpResponse<T, E>;
450450
r.data = null as unknown as T;
451451
r.error = null as unknown as E;
452452

0 commit comments

Comments
 (0)