]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
0bf89bb940a59415ad34e3a1210453a576bde99c
[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
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 { configureTestBed } from '../../../shared/unit-test-helper';
13 import { RbdSnapshotFormComponent } from './rbd-snapshot-form.component';
14
15 describe('RbdSnapshotFormComponent', () => {
16   let component: RbdSnapshotFormComponent;
17   let fixture: ComponentFixture<RbdSnapshotFormComponent>;
18
19   configureTestBed({
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
32   beforeEach(() => {
33     fixture = TestBed.createComponent(RbdSnapshotFormComponent);
34     component = fixture.componentInstance;
35     fixture.detectChanges();
36   });
37
38   it('should create', () => {
39     expect(component).toBeTruthy();
40   });
41 });