Skip to content

Commit 10e5488

Browse files
author
Fransis Young
committed
test(client): updates snapshots
1 parent bdd7725 commit 10e5488

File tree

139 files changed

+278
-139
lines changed

Some content is hidden

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

139 files changed

+278
-139
lines changed

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/body-response-text-plain/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/form-data/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/instance/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-valibot/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-zod/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/client/client.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export const createClient = (config: Config = {}): Client => {
228228
return options.body;
229229
}
230230

231-
return null;
231+
// no body was provided
232+
return undefined;
232233
}
233234

234235
const makeMethodFn =

0 commit comments

Comments
 (0)