Skip to content

Commit cf4f78b

Browse files
committed
Tests.
Support tests.
1 parent c8faa10 commit cf4f78b

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
lines changed

src/utils/registerHandlebarTemplates.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ describe('registerHandlebarTemplates', () => {
77
httpClient: HttpClient.FETCH,
88
useOptions: false,
99
useUnionTypes: false,
10+
useNullForNoContent: false,
1011
});
1112
expect(templates.index).toBeDefined();
1213
expect(templates.exports.model).toBeDefined();

src/utils/writeClient.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ describe('writeClient', () => {
4343
HttpClient.FETCH,
4444
false,
4545
false,
46+
false,
4647
true,
4748
true,
4849
true,

src/utils/writeClientCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const writeClientCore = async (
2727
indent: Indent,
2828
clientName?: string,
2929
request?: string,
30-
useNullForNoContent: boolean,
30+
useNullForNoContent?: boolean,
3131
): Promise<void> => {
3232
const httpRequest = getHttpRequestName(httpClient);
3333
const context = {

test/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const generate = async (input, output) => {
1010
httpClient: OpenAPI.HttpClient.FETCH,
1111
useOptions: true,
1212
useUnionTypes: false,
13+
useNullForNoContent: false,
1314
exportCore: true,
1415
exportSchemas: true,
1516
exportModels: true,

test/index.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ describe('v2', () => {
1111
httpClient: HttpClient.FETCH,
1212
useOptions: false,
1313
useUnionTypes: false,
14+
useNullForNoContent: false,
1415
exportCore: true,
1516
exportSchemas: true,
1617
exportModels: true,
@@ -33,6 +34,7 @@ describe('v3', () => {
3334
httpClient: HttpClient.FETCH,
3435
useOptions: false,
3536
useUnionTypes: false,
37+
useNullForNoContent: false,
3638
exportCore: true,
3739
exportSchemas: true,
3840
exportModels: true,

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type Options = {
1919
clientName?: string;
2020
useOptions?: boolean;
2121
useUnionTypes?: boolean;
22+
useNullForNoContent?: boolean;
2223
exportCore?: boolean;
2324
exportServices?: boolean;
2425
exportModels?: boolean;

0 commit comments

Comments
 (0)