From d2dc144dfec58ed5c789057e73c6689a071ef4a4 Mon Sep 17 00:00:00 2001 From: jen Date: Mon, 23 Oct 2023 18:57:13 +0100 Subject: [PATCH] fix tests --- src/server/utils/__tests__/validation.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/utils/__tests__/validation.test.ts b/src/server/utils/__tests__/validation.test.ts index 805b8129c..8d4a7fb29 100644 --- a/src/server/utils/__tests__/validation.test.ts +++ b/src/server/utils/__tests__/validation.test.ts @@ -22,7 +22,8 @@ describe("isGovUKEmailAddress", () => { expect(isGovUKEmailAddress("person.surname@fco")).toBe(false); expect(isGovUKEmailAddress("@fcdo.gov.uk")).toBe(false); expect(isGovUKEmailAddress("fcdo.gov.uk")).toBe(false); - expect(isGovUKEmailAddress("someone@fcdo.gov.uk")).toBe(false); + expect(isGovUKEmailAddress("someone@gov.uk")).toBe(false); + expect(isGovUKEmailAddress("someone@ho.gov.uk")).toBe(false); }); test("multiple emails fail", () => {