Fixes: https://tracker.ceph.com/issues/39714
Signed-off-by: anurag <anurag@localhost.localdomain>
(cherry picked from commit
27a2bbb12614b7aba0561c027346d9b5427f2405)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts,
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table-key-value/table-key-value.component.spec.ts:
added import of PipesModule to Angular unit tests
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
import { CellTemplate } from '../../enum/cell-template.enum';
import { CdTableColumn } from '../../models/cd-table-column';
import { CdDatePipe } from '../../pipes/cd-date.pipe';
+import { PipesModule } from '../../pipes/pipes.module';
import { TableComponent } from '../table/table.component';
import { TableKeyValueComponent } from './table-key-value.component';
configureTestBed({
declarations: [TableComponent, TableKeyValueComponent],
- imports: [FormsModule, NgxDatatableModule, ComponentsModule, RouterTestingModule]
+ imports: [FormsModule, NgxDatatableModule, ComponentsModule, PipesModule, RouterTestingModule]
});
beforeEach(() => {
<ng-template #perSecondTpl
let-row="row"
let-value="value">
- {{ value }} /s
+ {{ value | dimless }} /s
</ng-template>
<ng-template #executingTpl
import { configureTestBed } from '../../../../testing/unit-test-helper';
import { ComponentsModule } from '../../components/components.module';
import { CdTableFetchDataContext } from '../../models/cd-table-fetch-data-context';
+import { PipesModule } from '../../pipes/pipes.module';
import { TableComponent } from './table.component';
describe('TableComponent', () => {
configureTestBed({
declarations: [TableComponent],
- imports: [NgxDatatableModule, FormsModule, ComponentsModule, RouterTestingModule]
+ imports: [NgxDatatableModule, FormsModule, ComponentsModule, PipesModule, RouterTestingModule]
});
beforeEach(() => {