import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { of } from 'rxjs';
];
configureTestBed({
- imports: [CephModule, CoreModule, SharedModule, HttpClientTestingModule, RouterTestingModule],
+ imports: [
+ BrowserAnimationsModule,
+ CephModule,
+ CoreModule,
+ SharedModule,
+ HttpClientTestingModule,
+ RouterTestingModule
+ ],
providers: [{ provide: AuthStorageService, useValue: fakeAuthStorageService }, i18nProviders],
declarations: []
});
});
it('should have columns that are sortable', () => {
- expect(component.columns.every((column) => Boolean(column.prop))).toBeTruthy();
+ expect(
+ component.columns
+ .filter((column) => !(column.cellClass === 'cd-datatable-expand-collapse'))
+ .every((column) => Boolean(column.prop))
+ ).toBeTruthy();
});
it('should return all services', () => {