X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fsrc%2Fapp%2Fceph%2Fblock%2Fiscsi%2Fiscsi.component.spec.ts;h=b693c3d45f3678eb09e5d6c3cae562cbdbe72318;hb=e306af509c4d4816a1f73b17a825ea5186fa0030;hp=c7d533c186ddf3c022d2aeb0eb49cb24c29e2a00;hpb=11fdf7f228cb605e22a0e495ebabd3329db96b81;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts index c7d533c18..b693c3d45 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts @@ -1,5 +1,6 @@ import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { of } from 'rxjs'; @@ -8,7 +9,6 @@ import { IscsiService } from '../../../shared/api/iscsi.service'; import { CephShortVersionPipe } from '../../../shared/pipes/ceph-short-version.pipe'; import { DimlessPipe } from '../../../shared/pipes/dimless.pipe'; import { IscsiBackstorePipe } from '../../../shared/pipes/iscsi-backstore.pipe'; -import { ListPipe } from '../../../shared/pipes/list.pipe'; import { RelativeDatePipe } from '../../../shared/pipes/relative-date.pipe'; import { FormatterService } from '../../../shared/services/formatter.service'; import { SharedModule } from '../../../shared/shared.module'; @@ -18,18 +18,18 @@ describe('IscsiComponent', () => { let component: IscsiComponent; let fixture: ComponentFixture; let iscsiService: IscsiService; - let tcmuiscsiData; + let tcmuiscsiData: Record; const fakeService = { overview: () => { - return new Promise(function() { + return new Promise(function () { return; }); } }; configureTestBed({ - imports: [SharedModule], + imports: [BrowserAnimationsModule, SharedModule], declarations: [IscsiComponent], schemas: [NO_ERRORS_SCHEMA], providers: [ @@ -38,7 +38,6 @@ describe('IscsiComponent', () => { FormatterService, RelativeDatePipe, IscsiBackstorePipe, - ListPipe, { provide: IscsiService, useValue: fakeService }, i18nProviders ] @@ -68,8 +67,16 @@ describe('IscsiComponent', () => { it('should refresh with stats', () => { tcmuiscsiData.images.push({ stats_history: { - rd_bytes: [[1540551220, 0.0], [1540551225, 0.0], [1540551230, 0.0]], - wr_bytes: [[1540551220, 0.0], [1540551225, 0.0], [1540551230, 0.0]] + rd_bytes: [ + [1540551220, 0.0], + [1540551225, 0.0], + [1540551230, 0.0] + ], + wr_bytes: [ + [1540551220, 0.0], + [1540551225, 0.0], + [1540551230, 0.0] + ] } }); component.refresh();