/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { SelectModel } from '../../models/select' import { CfSelectComponent } from './select.component'; describe('CfSelectComponent', () => { let component: CfSelectComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ CfSelectComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(CfSelectComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); it('should create default select', () => { let testSelect = new SelectModel({ items: [], itemValue: '', itemLabel: '', selected: '', placeholder: '', showFilter: false }); expect(component.cfSelect).toEqual(testSelect); }); it('should render placeholder text in a span.mat-select-placeholder tag', () => { expect(component.querySelector('span.mat-select-placeholder').textContent).toContain(''); }); });