From 9a7d9b088691f3c5220473745c3cf9558a042f9d Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Fernadez Date: Wed, 25 Sep 2024 16:57:54 -0600 Subject: [PATCH] lmendoza/sep-24 --- .../register2/components/step-c/step-c.spec.ts | 15 ++++++++++++++- .../register2/components/step-c2/step-c2.spec.ts | 12 ++++++++++++ .../components/step-d/step-d.component.spec.ts | 12 ++++++++++++ src/app/register2/register-state.service.spec.ts | 3 ++- 4 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/app/register2/components/step-c/step-c.spec.ts b/src/app/register2/components/step-c/step-c.spec.ts index af56bda93..36be29d63 100644 --- a/src/app/register2/components/step-c/step-c.spec.ts +++ b/src/app/register2/components/step-c/step-c.spec.ts @@ -15,6 +15,8 @@ import { RouterTestingModule } from '@angular/router/testing' import { WINDOW_PROVIDERS } from 'src/app/cdk/window' import { SnackbarService } from 'src/app/cdk/snackbar/snackbar.service' import { MatLegacySnackBarModule } from '@angular/material/legacy-snack-bar' +import { RegisterStateService } from '../../register-state.service' +import { RegisterObservabilityService } from '../../register-observability.service' @Component({ selector: 'app-form-visibility', @@ -46,8 +48,19 @@ describe('StepCComponent', () => { MatLegacySnackBarModule, ], declarations: [StepCComponent, MockFormVisibilityComponent], - providers: [WINDOW_PROVIDERS, SnackbarService], schemas: [CUSTOM_ELEMENTS_SCHEMA], + providers: [ + WINDOW_PROVIDERS, + SnackbarService, + { + provide: RegisterStateService, + useValue: {}, + }, + { + provide: RegisterObservabilityService, + useValue: {}, + }, + ], }).compileComponents() }) diff --git a/src/app/register2/components/step-c2/step-c2.spec.ts b/src/app/register2/components/step-c2/step-c2.spec.ts index 8ab14e360..49c0ef1c2 100644 --- a/src/app/register2/components/step-c2/step-c2.spec.ts +++ b/src/app/register2/components/step-c2/step-c2.spec.ts @@ -10,6 +10,8 @@ import { UntypedFormControl, UntypedFormGroup, } from '@angular/forms' +import { RegisterStateService } from '../../register-state.service' +import { RegisterObservabilityService } from '../../register-observability.service' @Component({ selector: 'app-form-current-employment', @@ -38,6 +40,16 @@ describe('StepCComponent', () => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule], declarations: [StepC2Component, MockFormCurrentEmploymentComponent], + providers: [ + { + provide: RegisterStateService, + useValue: {}, + }, + { + provide: RegisterObservabilityService, + useValue: {}, + }, + ], schemas: [CUSTOM_ELEMENTS_SCHEMA], }).compileComponents() }) diff --git a/src/app/register2/components/step-d/step-d.component.spec.ts b/src/app/register2/components/step-d/step-d.component.spec.ts index 3a5021278..295d19da3 100644 --- a/src/app/register2/components/step-d/step-d.component.spec.ts +++ b/src/app/register2/components/step-d/step-d.component.spec.ts @@ -10,6 +10,8 @@ import { UntypedFormControl, UntypedFormGroup, } from '@angular/forms' +import { RegisterStateService } from '../../register-state.service' +import { RegisterObservabilityService } from '../../register-observability.service' @Component({ selector: 'app-form-notifications', @@ -76,6 +78,16 @@ describe('StepDComponent', () => { MockFormAntiRobotsComponent, ], schemas: [CUSTOM_ELEMENTS_SCHEMA], + providers: [ + { + provide: RegisterStateService, + useValue: {}, + }, + { + provide: RegisterObservabilityService, + useValue: {}, + }, + ], }).compileComponents() }) diff --git a/src/app/register2/register-state.service.spec.ts b/src/app/register2/register-state.service.spec.ts index 5be2466a0..460594909 100644 --- a/src/app/register2/register-state.service.spec.ts +++ b/src/app/register2/register-state.service.spec.ts @@ -3,6 +3,7 @@ import { TestBed } from '@angular/core/testing' import { RegisterStateService } from './register-state.service' import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core' +import { OrganizationsService } from '../core' describe('RegisterStateService', () => { let service: RegisterStateService @@ -11,7 +12,7 @@ describe('RegisterStateService', () => { TestBed.configureTestingModule({ providers: [ { - provide: RegisterStateService, + provide: OrganizationsService, useValue: {}, }, ],