From 20e88826d43d2be2a1ee411e5eee501b150a9f3d Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Wed, 10 May 2023 08:29:23 +0000 Subject: [PATCH] Moved `FailMode` to `errors` --- src/utils/{ => errors}/fail-mode.ts | 0 src/utils/errors/index.ts | 1 + tests/unit/utils/{ => errors}/fail-mode.spec.ts | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename src/utils/{ => errors}/fail-mode.ts (100%) rename tests/unit/utils/{ => errors}/fail-mode.spec.ts (94%) diff --git a/src/utils/fail-mode.ts b/src/utils/errors/fail-mode.ts similarity index 100% rename from src/utils/fail-mode.ts rename to src/utils/errors/fail-mode.ts diff --git a/src/utils/errors/index.ts b/src/utils/errors/index.ts index 651698d..aed9e77 100644 --- a/src/utils/errors/index.ts +++ b/src/utils/errors/index.ts @@ -1,6 +1,7 @@ export { isError } from "./error"; export { ArgumentError } from "./argument-error"; export { ArgumentNullError } from "./argument-null-error"; +export { FailMode } from "./fail-mode"; export { SoftError, isSoftError } from "./soft-error"; export { FileNotFoundError } from "./file-not-found-error"; export { HttpError, isHttpError } from "./http-error"; diff --git a/tests/unit/utils/fail-mode.spec.ts b/tests/unit/utils/errors/fail-mode.spec.ts similarity index 94% rename from tests/unit/utils/fail-mode.spec.ts rename to tests/unit/utils/errors/fail-mode.spec.ts index 5a55e1c..35936e5 100644 --- a/tests/unit/utils/fail-mode.spec.ts +++ b/tests/unit/utils/errors/fail-mode.spec.ts @@ -1,4 +1,4 @@ -import { FailMode } from "@/utils/fail-mode"; +import { FailMode } from "@/utils/errors/fail-mode"; describe("FailMode", () => { describe("parse", () => {