From 789854676128c2f9e1523921b18cc22bf831e396 Mon Sep 17 00:00:00 2001 From: William Thorenfeldt <48119543+wrt95@users.noreply.github.com> Date: Fri, 25 Oct 2024 08:42:43 +0200 Subject: [PATCH] chore: Delete createApiErrorMocks (#13913) --- frontend/packages/shared/src/mocks/apiErrorMocks.ts | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 frontend/packages/shared/src/mocks/apiErrorMocks.ts diff --git a/frontend/packages/shared/src/mocks/apiErrorMocks.ts b/frontend/packages/shared/src/mocks/apiErrorMocks.ts deleted file mode 100644 index 6825624341e..00000000000 --- a/frontend/packages/shared/src/mocks/apiErrorMocks.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { AxiosResponse } from 'axios'; -import { AxiosError } from 'axios'; - -export const createApiErrorMock = (status?: number): AxiosError => { - const error = new AxiosError(); - error.response = { - status, - } as AxiosResponse; - return error; -};