]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
3217fe39f4c38d09a92993de8f0e0e615db23187
[ceph.git] /
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { ReactiveFormsModule } from '@angular/forms';
4
5 import { ToastModule } from 'ng2-toastr';
6 import { BsModalRef, BsModalService } from 'ngx-bootstrap';
7
8 import { ApiModule } from '../../../shared/api/api.module';
9 import { ComponentsModule } from '../../../shared/components/components.module';
10 import { AuthStorageService } from '../../../shared/services/auth-storage.service';
11 import { ServicesModule } from '../../../shared/services/services.module';
12 import { RbdSnapshotFormComponent } from './rbd-snapshot-form.component';
13
14 describe('RbdSnapshotFormComponent', () => {
15   let component: RbdSnapshotFormComponent;
16   let fixture: ComponentFixture<RbdSnapshotFormComponent>;
17
18   beforeEach(async(() => {
19     TestBed.configureTestingModule({
20       imports: [
21         ReactiveFormsModule,
22         ComponentsModule,
23         HttpClientTestingModule,
24         ServicesModule,
25         ApiModule,
26         ToastModule.forRoot()
27       ],
28       declarations: [ RbdSnapshotFormComponent ],
29       providers: [ BsModalRef, BsModalService, AuthStorageService ]
30     })
31     .compileComponents();
32   }));
33
34   beforeEach(() => {
35     fixture = TestBed.createComponent(RbdSnapshotFormComponent);
36     component = fixture.componentInstance;
37     fixture.detectChanges();
38   });
39
40   it('should create', () => {
41     expect(component).toBeTruthy();
42   });
43 });