blob: e6b8e87d9cbc1d8503a677245ab665e574594571 [file] [log] [blame]
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { TestingModule } from '../../testing/testing.module';
import { ClusterComponent } from './cluster.component';
describe('ClusterComponent', () => {
let component: ClusterComponent;
let fixture: ComponentFixture<ClusterComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [FlexLayoutModule, TestingModule],
declarations: [ClusterComponent],
schemas: [
/* avoid importing modules */
NO_ERRORS_SCHEMA,
],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ClusterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should be created', () => {
expect(component).toBeTruthy();
});
it('should contain cluster list', waitForAsync(() => {
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('hi-cluster-list')).toBeDefined();
}));
});