From c1a771dde40a8983e02d7986b537e74f0b414de7 Mon Sep 17 00:00:00 2001 From: Rhys Lewis Date: Tue, 17 Sep 2024 12:00:52 +0100 Subject: [PATCH] fixed tests --- .../__tests__/mot-no-evidence-confirmation.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/pages/waiting-room-to-car/components/mot-components/mot-no-evidence-confirmation/__tests__/mot-no-evidence-confirmation.spec.ts b/src/app/pages/waiting-room-to-car/components/mot-components/mot-no-evidence-confirmation/__tests__/mot-no-evidence-confirmation.spec.ts index 989d9957e..a3c081a48 100644 --- a/src/app/pages/waiting-room-to-car/components/mot-components/mot-no-evidence-confirmation/__tests__/mot-no-evidence-confirmation.spec.ts +++ b/src/app/pages/waiting-room-to-car/components/mot-components/mot-no-evidence-confirmation/__tests__/mot-no-evidence-confirmation.spec.ts @@ -12,6 +12,7 @@ import { testsReducer } from '@store/tests/tests.reducer'; import { ReactiveFormsModule } from '@angular/forms'; import { MotNoEvidenceConfirmationComponent } from '../mot-no-evidence-confirmation'; +import {ActivityCodes} from '@shared/models/activity-codes'; describe('MotNoEvidenceConfirmationComponent', () => { let fixture: ComponentFixture; @@ -66,7 +67,7 @@ describe('MotNoEvidenceConfirmationComponent', () => { describe('onContinue', () => { it('should dispatch an action to set the activity code to failed mot', async () => { await component.onContinue(); - expect(store$.dispatch).toHaveBeenCalledWith(SetActivityCode('12')); + expect(store$.dispatch).toHaveBeenCalledWith(SetActivityCode(ActivityCodes.MOT_INVALID)); }); }); });