]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.spec.ts
a7a0aa4a72b9438144f1ac7892f343096654a7a7
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / mirroring / overview / overview.component.spec.ts
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { RouterTestingModule } from '@angular/router/testing';
4
5 import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
6 import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
7 import { TabsModule } from 'ngx-bootstrap/tabs';
8 import { ToastrModule } from 'ngx-toastr';
9
10 import { configureTestBed, i18nProviders } from '../../../../../testing/unit-test-helper';
11 import { SharedModule } from '../../../../shared/shared.module';
12 import { DaemonListComponent } from '../daemon-list/daemon-list.component';
13 import { ImageListComponent } from '../image-list/image-list.component';
14 import { MirrorHealthColorPipe } from '../mirror-health-color.pipe';
15 import { PoolListComponent } from '../pool-list/pool-list.component';
16 import { OverviewComponent } from './overview.component';
17
18 describe('OverviewComponent', () => {
19 let component: OverviewComponent;
20 let fixture: ComponentFixture<OverviewComponent>;
21
22 configureTestBed({
23 declarations: [
24 DaemonListComponent,
25 ImageListComponent,
26 MirrorHealthColorPipe,
27 OverviewComponent,
28 PoolListComponent
29 ],
30 imports: [
31 SharedModule,
32 BsDropdownModule.forRoot(),
33 TabsModule.forRoot(),
34 ProgressbarModule.forRoot(),
35 HttpClientTestingModule,
36 RouterTestingModule,
37 ToastrModule.forRoot()
38 ],
39 providers: i18nProviders
40 });
41
42 beforeEach(() => {
43 fixture = TestBed.createComponent(OverviewComponent);
44 component = fixture.componentInstance;
45 fixture.detectChanges();
46 });
47
48 it('should create', () => {
49 expect(component).toBeTruthy();
50 });
51 });