Skip to content

Commit b555064

Browse files
committed
[AEA-5926] fix missed test
1 parent 284173e commit b555064

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

packages/cpt-ui/__tests__/EpsPrescriptionList.test.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,14 @@ const defaultSearchState: SearchProviderContextType = {
195195
const mockSearchResponse: SearchResponse = {
196196
patient: {
197197
nhsNumber: "5900009890",
198-
prefix: "Mr",
199-
suffix: "",
200-
given: "William",
201-
family: "Wolderton",
198+
givenName: ["William"],
199+
familyName: "Wolderton",
202200
gender: "male",
203201
dateOfBirth: "01-Nov-1988",
204-
address: {
205-
line1: "55 OAK STREET",
206-
line2: "OAK LANE",
207-
city: "Leeds",
208-
postcode: "LS1 1XX"
209-
}
202+
address: ["55 OAK STREET", "OAK LANE", "Leeds"],
203+
postcode: "LS1 1XX"
210204
},
205+
patientFallback: false,
211206
currentPrescriptions: [
212207
{
213208
prescriptionId: "C0C757-A83008-C2D93O",
@@ -469,6 +464,7 @@ describe("PrescriptionListPage", () => {
469464
it("shows 0 when there are no results", async () => {
470465
const noResults: SearchResponse = {
471466
patient: mockSearchResponse.patient,
467+
patientFallback: false,
472468
currentPrescriptions: mockSearchResponse.currentPrescriptions,
473469
pastPrescriptions: [],
474470
futurePrescriptions: []
@@ -673,6 +669,7 @@ describe("PrescriptionListPage", () => {
673669
it("renders the prescription not found message when prescriptionId query returns no results", async () => {
674670
const noResults: SearchResponse = {
675671
patient: mockSearchResponse.patient,
672+
patientFallback: false,
676673
currentPrescriptions: [],
677674
pastPrescriptions: [],
678675
futurePrescriptions: []

0 commit comments

Comments
 (0)