]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
9dea478ef8a7018221885693374ce588a98284b4
[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 { ToastModule } from 'ng2-toastr';
7 import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
8
9 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
10 import { ApiModule } from '../../../shared/api/api.module';
11 import { ComponentsModule } from '../../../shared/components/components.module';
12 import { AuthStorageService } from '../../../shared/services/auth-storage.service';
13 import { ServicesModule } from '../../../shared/services/services.module';
14 import { RbdSnapshotFormComponent } from './rbd-snapshot-form.component';
15
16 describe('RbdSnapshotFormComponent', () => {
17   let component: RbdSnapshotFormComponent;
18   let fixture: ComponentFixture<RbdSnapshotFormComponent>;
19
20   configureTestBed({
21     imports: [
22       ReactiveFormsModule,
23       ComponentsModule,
24       HttpClientTestingModule,
25       ServicesModule,
26       ApiModule,
27       ToastModule.forRoot(),
28       RouterTestingModule
29     ],
30     declarations: [RbdSnapshotFormComponent],
31     providers: [BsModalRef, BsModalService, AuthStorageService, i18nProviders]
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 });