1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { FormsModule } from '@angular/forms';
5 import * as _ from 'lodash';
6 import { ToastrModule } from 'ngx-toastr';
8 import { configureTestBed, i18nProviders } from '../../../../../testing/unit-test-helper';
9 import { SharedModule } from '../../../../shared/shared.module';
10 import { InventoryDevicesComponent } from './inventory-devices.component';
12 describe('InventoryDevicesComponent', () => {
13 let component: InventoryDevicesComponent;
14 let fixture: ComponentFixture<InventoryDevicesComponent>;
17 imports: [FormsModule, HttpClientTestingModule, SharedModule, ToastrModule.forRoot()],
18 providers: [i18nProviders],
19 declarations: [InventoryDevicesComponent]
23 fixture = TestBed.createComponent(InventoryDevicesComponent);
24 component = fixture.componentInstance;
25 fixture.detectChanges();
28 it('should create', () => {
29 expect(component).toBeTruthy();
32 it('should have columns that are sortable', () => {
33 expect(component.columns.every((column) => Boolean(column.prop))).toBeTruthy();