Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RLCorp committed Sep 17, 2024
1 parent 2527cf2 commit c1a771d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<MotNoEvidenceConfirmationComponent>;
Expand Down Expand Up @@ -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));
});
});
});
Expand Down

0 comments on commit c1a771d

Please sign in to comment.