From bd2aecd46d0f31e6c40be927db1d20bb39aea53c Mon Sep 17 00:00:00 2001 From: "Paul G." Date: Mon, 16 Dec 2024 10:53:02 +0100 Subject: [PATCH] fix: mise a jour de l'import de l'util du numero de tel (#3940) Co-authored-by: Paul Gaucher --- server/tests/integration/common/utils/validationUtils.test.ts | 3 +-- shared/models/parts/zodPrimitives.ts | 2 +- .../validation => shared}/utils/frenchTelephoneNumber.ts | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename {server/src/common/validation => shared}/utils/frenchTelephoneNumber.ts (100%) diff --git a/server/tests/integration/common/utils/validationUtils.test.ts b/server/tests/integration/common/utils/validationUtils.test.ts index 2845a7ee6..8db2f2cfa 100644 --- a/server/tests/integration/common/utils/validationUtils.test.ts +++ b/server/tests/integration/common/utils/validationUtils.test.ts @@ -1,8 +1,7 @@ import { isValidCFD } from "shared"; +import { telephoneConverter } from "shared/utils/frenchTelephoneNumber"; import { it, expect, describe } from "vitest"; -import { telephoneConverter } from "@/common/validation/utils/frenchTelephoneNumber"; - describe("Validation Utils", () => { describe("validation du CFD", () => { [ diff --git a/shared/models/parts/zodPrimitives.ts b/shared/models/parts/zodPrimitives.ts index 1cb3423c6..738d79352 100644 --- a/shared/models/parts/zodPrimitives.ts +++ b/shared/models/parts/zodPrimitives.ts @@ -16,7 +16,7 @@ import { PHONE_REGEX_PATTERN, } from "shared"; -import { telephoneConverter } from "../../../server/src/common/validation/utils/frenchTelephoneNumber"; +import { telephoneConverter } from "../../utils/frenchTelephoneNumber"; extendZodWithOpenApi(z); diff --git a/server/src/common/validation/utils/frenchTelephoneNumber.ts b/shared/utils/frenchTelephoneNumber.ts similarity index 100% rename from server/src/common/validation/utils/frenchTelephoneNumber.ts rename to shared/utils/frenchTelephoneNumber.ts