]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.spec.ts
import ceph quincy 17.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / mirroring / pool-list / pool-list.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 { ToastrModule } from 'ngx-toastr';
7
8 import { SharedModule } from '~/app/shared/shared.module';
9 import { configureTestBed } from '~/testing/unit-test-helper';
10 import { MirrorHealthColorPipe } from '../mirror-health-color.pipe';
11 import { PoolListComponent } from './pool-list.component';
12
13 describe('PoolListComponent', () => {
14 let component: PoolListComponent;
15 let fixture: ComponentFixture<PoolListComponent>;
16
17 configureTestBed({
18 declarations: [PoolListComponent, MirrorHealthColorPipe],
19 imports: [
20 BrowserAnimationsModule,
21 SharedModule,
22 HttpClientTestingModule,
23 RouterTestingModule,
24 ToastrModule.forRoot()
25 ]
26 });
27
28 beforeEach(() => {
29 fixture = TestBed.createComponent(PoolListComponent);
30 component = fixture.componentInstance;
31 fixture.detectChanges();
32 });
33
34 it('should create', () => {
35 expect(component).toBeTruthy();
36 });
37 });