From 480d86bc07da13387ab82dde0119f1982e390aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 24 Oct 2024 12:02:00 +0100 Subject: [PATCH] test: Check that Bucks is also filtered out of passport --- editor.planx.uk/src/@planx/components/Send/Public.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/Send/Public.test.tsx b/editor.planx.uk/src/@planx/components/Send/Public.test.tsx index 3bbf372dea..00ba3d8ac1 100644 --- a/editor.planx.uk/src/@planx/components/Send/Public.test.tsx +++ b/editor.planx.uk/src/@planx/components/Send/Public.test.tsx @@ -144,7 +144,7 @@ describe("Uniform overrides for Buckinghamshire", () => { breadcrumbs: { findProperty: { data: { - "property.localAuthorityDistrict": ["Some local authority district"] + "property.localAuthorityDistrict": ["Buckinghamshire", "Historic district name"] } } } @@ -165,7 +165,7 @@ describe("Uniform overrides for Buckinghamshire", () => { expect(apiPayload?.bops?.localAuthority).toEqual("buckinghamshire"); // Uniform event has read property.localAuthorityDistrict from the passport - expect(apiPayload?.uniform?.localAuthority).toEqual("some-local-authority-district"); + expect(apiPayload?.uniform?.localAuthority).toEqual("historic-district-name"); }); it("maps requests for South Bucks to Chiltern", async () => {