]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
a5607adebae04fb8e2ceb8e29124909611f809f2
[ceph.git] /
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { ReactiveFormsModule } from '@angular/forms';
4 import { RouterTestingModule } from '@angular/router/testing';
5
6 import { ToastrModule } from 'ngx-toastr';
7
8 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
9 import { SharedModule } from '../../../shared/shared.module';
10 import { UserPasswordLoginFormComponent } from './user-password-login-form.component';
11
12 describe('UserPasswordLoginFormComponent', () => {
13   let component: UserPasswordLoginFormComponent;
14   let fixture: ComponentFixture<UserPasswordLoginFormComponent>;
15
16   configureTestBed(
17     {
18       imports: [
19         HttpClientTestingModule,
20         RouterTestingModule,
21         ReactiveFormsModule,
22         ToastrModule.forRoot(),
23         SharedModule
24       ],
25       declarations: [UserPasswordLoginFormComponent],
26       providers: i18nProviders
27     },
28     true
29   );
30
31   beforeEach(() => {
32     fixture = TestBed.createComponent(UserPasswordLoginFormComponent);
33     component = fixture.componentInstance;
34     fixture.detectChanges();
35   });
36
37   it('should create', () => {
38     expect(component).toBeTruthy();
39   });
40 });