diff --git a/src/app/pages/waiting-room-to-car/components/mot-components/mot-card/mot-card.component.html b/src/app/pages/waiting-room-to-car/components/mot-components/mot-card/mot-card.component.html index c1150aafb..7d820a487 100644 --- a/src/app/pages/waiting-room-to-car/components/mot-components/mot-card/mot-card.component.html +++ b/src/app/pages/waiting-room-to-car/components/mot-components/mot-card/mot-card.component.html @@ -12,7 +12,7 @@ - {{ isValidMOT() ? data?.status : data?.expiryDate ? 'Expired ' + data?.expiryDate : 'Not valid' }} + {{ isValidMOT() ? data?.expiryDate ? 'Valid until ' + data?.expiryDate : 'Valid' : data?.expiryDate ? 'Expired ' + data?.expiryDate : 'Not valid' }} diff --git a/src/app/providers/mot-history-api/__mocks__/mot-history.mock.ts b/src/app/providers/mot-history-api/__mocks__/mot-history.mock.ts index d9f0ef5ed..42472911e 100644 --- a/src/app/providers/mot-history-api/__mocks__/mot-history.mock.ts +++ b/src/app/providers/mot-history-api/__mocks__/mot-history.mock.ts @@ -13,7 +13,7 @@ export const fakeMOTResults: { make: 'Practice', model: 'Mode', status: MotStatusCodes.VALID, - expiryDate: '01/01/0001', + expiryDate: '31/12/9999', }, }, fail: {