Skip to content

Commit

Permalink
lmendoza/sep-24
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Sep 25, 2024
1 parent dc481d0 commit 9a7d9b0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/app/register2/components/step-c/step-c.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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()
})

Expand Down
12 changes: 12 additions & 0 deletions src/app/register2/components/step-c2/step-c2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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()
})
Expand Down
12 changes: 12 additions & 0 deletions src/app/register2/components/step-d/step-d.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -76,6 +78,16 @@ describe('StepDComponent', () => {
MockFormAntiRobotsComponent,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
providers: [
{
provide: RegisterStateService,
useValue: {},
},
{
provide: RegisterObservabilityService,
useValue: {},
},
],
}).compileComponents()
})

Expand Down
3 changes: 2 additions & 1 deletion src/app/register2/register-state.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -11,7 +12,7 @@ describe('RegisterStateService', () => {
TestBed.configureTestingModule({
providers: [
{
provide: RegisterStateService,
provide: OrganizationsService,
useValue: {},
},
],
Expand Down

0 comments on commit 9a7d9b0

Please sign in to comment.