Skip to content

Commit 8fc7e9b

Browse files
committed
PD-3786 fix more tests
1 parent 6847bc3 commit 8fc7e9b

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/app/password-recovery/pages/password-recovery/password-recovery.component.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import { MatChipsModule } from '@angular/material/chips'
1515

1616
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'
1717
import { ReactiveFormsModule } from '@angular/forms'
18+
import { FormPasswordComponent } from '../../../register/components/form-password/form-password.component'
19+
import { MatRadioModule } from '@angular/material/radio'
1820

1921
describe('PasswordRecoveryComponent', () => {
2022
let component: PasswordRecoveryComponent
@@ -27,6 +29,8 @@ describe('PasswordRecoveryComponent', () => {
2729
MatChipsModule,
2830
RouterTestingModule,
2931
ReactiveFormsModule,
32+
FormPasswordComponent,
33+
MatRadioModule,
3034
],
3135
declarations: [PasswordRecoveryComponent],
3236
providers: [

src/app/register/components/backend-error/backend-error.component.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ describe('BackendErrorComponent', () => {
2020

2121
beforeEach(() => {
2222
TestBed.configureTestingModule({
23-
imports: [HttpClientTestingModule, RouterTestingModule],
24-
declarations: [BackendErrorComponent],
23+
imports: [
24+
HttpClientTestingModule,
25+
RouterTestingModule,
26+
BackendErrorComponent,
27+
],
2528
providers: [
2629
WINDOW_PROVIDERS,
2730
SignInService,

src/app/register/components/form-password/form-password.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ describe('FormPasswordComponent', () => {
3131
MdePopoverModule,
3232
RouterTestingModule,
3333
ReactiveFormsModule,
34+
FormPasswordComponent,
3435
],
35-
declarations: [FormPasswordComponent],
3636
providers: [
3737
{ provide: MatDialogRef, useValue: {} },
3838
{ provide: MAT_DIALOG_DATA, useValue: {} },

src/app/register/components/step-b/step-b.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ describe('StepBComponent', () => {
2626
HttpClientModule,
2727
RouterTestingModule,
2828
MatSnackBarModule,
29+
FormPasswordComponent,
2930
],
30-
declarations: [StepBComponent, FormPasswordComponent],
31+
declarations: [StepBComponent],
3132
providers: [WINDOW_PROVIDERS, SnackbarService],
3233
schemas: [CUSTOM_ELEMENTS_SCHEMA],
3334
}).compileComponents()

0 commit comments

Comments
 (0)