From ea164290886218008fd0ddd27d5523edd42d77c6 Mon Sep 17 00:00:00 2001 From: Stijn Van Hulle Date: Thu, 9 Jan 2025 22:32:20 +0100 Subject: [PATCH] chore: fix test cases --- .../plugin-client/src/generators/__snapshots__/deletePet.ts | 4 ++-- .../src/generators/__snapshots__/deletePetObject.ts | 4 ++-- .../plugin-client/src/generators/__snapshots__/findByTags.ts | 4 ++-- .../src/generators/__snapshots__/findByTagsFull.ts | 4 ++-- .../src/generators/__snapshots__/findByTagsObject.ts | 4 ++-- .../src/generators/__snapshots__/findByTagsWithZod.ts | 4 ++-- .../src/generators/__snapshots__/findByTagsWithZodFull.ts | 4 ++-- .../plugin-client/src/generators/__snapshots__/importPath.ts | 4 ++-- .../src/generators/__snapshots__/updatePetById.ts | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/plugin-client/src/generators/__snapshots__/deletePet.ts b/packages/plugin-client/src/generators/__snapshots__/deletePet.ts index 5cbfa4e51..60963ad7b 100644 --- a/packages/plugin-client/src/generators/__snapshots__/deletePet.ts +++ b/packages/plugin-client/src/generators/__snapshots__/deletePet.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getDeletePetURL(petId: DeletePetPathParams['petId']) { +export function getDeletePetUrl(petId: DeletePetPathParams['petId']) { return `/pet/${petId}` as const } @@ -14,7 +14,7 @@ export function getDeletePetURL(petId: DeletePetPathParams['petId']) { export async function deletePet(petId: DeletePetPathParams['petId'], headers?: DeletePetHeaderParams, config: Partial = {}) { const res = await client, unknown>({ method: 'DELETE', - url: getDeletePetURL(petId).toString(), + url: getDeletePetUrl(petId).toString(), headers: { ...headers, ...config.headers }, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/deletePetObject.ts b/packages/plugin-client/src/generators/__snapshots__/deletePetObject.ts index 9c03c2fa8..6a26e1b58 100644 --- a/packages/plugin-client/src/generators/__snapshots__/deletePetObject.ts +++ b/packages/plugin-client/src/generators/__snapshots__/deletePetObject.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getDeletePetURL({ petId }: { petId: DeletePetPathParams['petId'] }) { +export function getDeletePetUrl({ petId }: { petId: DeletePetPathParams['petId'] }) { return `/pet/${petId}` as const } @@ -14,7 +14,7 @@ export function getDeletePetURL({ petId }: { petId: DeletePetPathParams['petId'] export async function deletePet({ petId }: { petId: DeletePetPathParams['petId'] }, headers?: DeletePetHeaderParams, config: Partial = {}) { const res = await client, unknown>({ method: 'DELETE', - url: getDeletePetURL({ petId }).toString(), + url: getDeletePetUrl({ petId }).toString(), headers: { ...headers, ...config.headers }, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/findByTags.ts b/packages/plugin-client/src/generators/__snapshots__/findByTags.ts index d7b86d430..d3ecd52f5 100644 --- a/packages/plugin-client/src/generators/__snapshots__/findByTags.ts +++ b/packages/plugin-client/src/generators/__snapshots__/findByTags.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getFindPetsByTagsURL() { +export function getFindPetsByTagsUrl() { return `/pet/findByTags` as const } @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() { export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial = {}) { const res = await client, unknown>({ method: 'GET', - url: getFindPetsByTagsURL().toString(), + url: getFindPetsByTagsUrl().toString(), params, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/findByTagsFull.ts b/packages/plugin-client/src/generators/__snapshots__/findByTagsFull.ts index a840bec01..177ac241e 100644 --- a/packages/plugin-client/src/generators/__snapshots__/findByTagsFull.ts +++ b/packages/plugin-client/src/generators/__snapshots__/findByTagsFull.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getFindPetsByTagsURL() { +export function getFindPetsByTagsUrl() { return `/pet/findByTags` as const } @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() { export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial = {}) { const res = await client, unknown>({ method: 'GET', - url: getFindPetsByTagsURL().toString(), + url: getFindPetsByTagsUrl().toString(), params, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/findByTagsObject.ts b/packages/plugin-client/src/generators/__snapshots__/findByTagsObject.ts index 54b8bbc01..92a5460c1 100644 --- a/packages/plugin-client/src/generators/__snapshots__/findByTagsObject.ts +++ b/packages/plugin-client/src/generators/__snapshots__/findByTagsObject.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getFindPetsByTagsURL() { +export function getFindPetsByTagsUrl() { return `/pet/findByTags` as const } @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() { export async function findPetsByTags({ params }: { params?: FindPetsByTagsQueryParams }, config: Partial = {}) { const res = await client, unknown>({ method: 'GET', - url: getFindPetsByTagsURL().toString(), + url: getFindPetsByTagsUrl().toString(), params, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZod.ts b/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZod.ts index 3e06eb63b..5bf429e52 100644 --- a/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZod.ts +++ b/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZod.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getFindPetsByTagsURL() { +export function getFindPetsByTagsUrl() { return `/pet/findByTags` as const } @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() { export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial = {}) { const res = await client, unknown>({ method: 'GET', - url: getFindPetsByTagsURL().toString(), + url: getFindPetsByTagsUrl().toString(), params, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZodFull.ts b/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZodFull.ts index 9cbd0cc22..c599e4fdd 100644 --- a/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZodFull.ts +++ b/packages/plugin-client/src/generators/__snapshots__/findByTagsWithZodFull.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getFindPetsByTagsURL() { +export function getFindPetsByTagsUrl() { return `/pet/findByTags` as const } @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() { export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial = {}) { const res = await client, unknown>({ method: 'GET', - url: getFindPetsByTagsURL().toString(), + url: getFindPetsByTagsUrl().toString(), params, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/importPath.ts b/packages/plugin-client/src/generators/__snapshots__/importPath.ts index cb5c0d56a..fe73bc50f 100644 --- a/packages/plugin-client/src/generators/__snapshots__/importPath.ts +++ b/packages/plugin-client/src/generators/__snapshots__/importPath.ts @@ -2,7 +2,7 @@ import client from 'axios' import type { RequestConfig, ResponseErrorConfig } from 'axios' -export function getFindPetsByTagsURL() { +export function getFindPetsByTagsUrl() { return `/pet/findByTags` as const } @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() { export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial = {}) { const res = await client, unknown>({ method: 'GET', - url: getFindPetsByTagsURL().toString(), + url: getFindPetsByTagsUrl().toString(), params, ...config, }) diff --git a/packages/plugin-client/src/generators/__snapshots__/updatePetById.ts b/packages/plugin-client/src/generators/__snapshots__/updatePetById.ts index d2a37744f..0f2924e60 100644 --- a/packages/plugin-client/src/generators/__snapshots__/updatePetById.ts +++ b/packages/plugin-client/src/generators/__snapshots__/updatePetById.ts @@ -2,7 +2,7 @@ import client from '@kubb/plugin-client/clients/axios' import type { RequestConfig, ResponseErrorConfig } from '@kubb/plugin-client/clients/axios' -export function getUpdatePetWithFormURL(petId: UpdatePetWithFormPathParams['petId']) { +export function getUpdatePetWithFormUrl(petId: UpdatePetWithFormPathParams['petId']) { return `/pet/${petId}` as const } @@ -17,7 +17,7 @@ export async function updatePetWithForm( ) { const res = await client, unknown>({ method: 'POST', - url: getUpdatePetWithFormURL(petId).toString(), + url: getUpdatePetWithFormUrl(petId).toString(), params, ...config, })