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