Skip to content

Commit

Permalink
chore: fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Jan 9, 2025
1 parent b678aba commit ea16429
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getDeletePetURL(petId: DeletePetPathParams['petId']) {
export async function deletePet(petId: DeletePetPathParams['petId'], headers?: DeletePetHeaderParams, config: Partial<RequestConfig> = {}) {
const res = await client<DeletePetMutationResponse, ResponseErrorConfig<DeletePet400>, unknown>({
method: 'DELETE',
url: getDeletePetURL(petId).toString(),
url: getDeletePetUrl(petId).toString(),
headers: { ...headers, ...config.headers },
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getDeletePetURL({ petId }: { petId: DeletePetPathParams['petId']
export async function deletePet({ petId }: { petId: DeletePetPathParams['petId'] }, headers?: DeletePetHeaderParams, config: Partial<RequestConfig> = {}) {
const res = await client<DeletePetMutationResponse, ResponseErrorConfig<DeletePet400>, unknown>({
method: 'DELETE',
url: getDeletePetURL({ petId }).toString(),
url: getDeletePetUrl({ petId }).toString(),
headers: { ...headers, ...config.headers },
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() {
export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
method: 'GET',
url: getFindPetsByTagsURL().toString(),
url: getFindPetsByTagsUrl().toString(),
params,
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() {
export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
method: 'GET',
url: getFindPetsByTagsURL().toString(),
url: getFindPetsByTagsUrl().toString(),
params,
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() {
export async function findPetsByTags({ params }: { params?: FindPetsByTagsQueryParams }, config: Partial<RequestConfig> = {}) {
const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
method: 'GET',
url: getFindPetsByTagsURL().toString(),
url: getFindPetsByTagsUrl().toString(),
params,
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() {
export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
method: 'GET',
url: getFindPetsByTagsURL().toString(),
url: getFindPetsByTagsUrl().toString(),
params,
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() {
export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
method: 'GET',
url: getFindPetsByTagsURL().toString(),
url: getFindPetsByTagsUrl().toString(),
params,
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -14,7 +14,7 @@ export function getFindPetsByTagsURL() {
export async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
const res = await client<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, unknown>({
method: 'GET',
url: getFindPetsByTagsURL().toString(),
url: getFindPetsByTagsUrl().toString(),
params,
...config,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -17,7 +17,7 @@ export async function updatePetWithForm(
) {
const res = await client<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, unknown>({
method: 'POST',
url: getUpdatePetWithFormURL(petId).toString(),
url: getUpdatePetWithFormUrl(petId).toString(),
params,
...config,
})
Expand Down

0 comments on commit ea16429

Please sign in to comment.