Skip to content

fix(site): Fix template icon field validation #7394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 4, 2023
Prev Previous commit
Next Next commit
Remove unecessary type
  • Loading branch information
BrunoQuaresma committed May 3, 2023
commit 70dc4ae4dda1918464d6c7da2ad2dfc88894c9c7
6 changes: 2 additions & 4 deletions site/src/testHelpers/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1263,13 +1263,11 @@ type MockAPIOutput = {
isAxiosError: boolean
}

type makeMockValidationApiErrorFunction = (input: MockAPIInput) => MockAPIOutput

export const makeMockValidationApiError: makeMockValidationApiErrorFunction = ({
export const makeMockValidationApiError = ({
message,
detail,
validations,
}) => ({
}: MockAPIInput): MockAPIOutput => ({
response: {
data: {
message: message ?? "Something went wrong.",
Expand Down