1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { VorgangComponent } from './vorgang.component';
5 describe('VorgangComponent', () => {
6 let component: VorgangComponent;
7 let fixture: ComponentFixture<VorgangComponent>;
9 beforeEach(async(() => {
10 TestBed.configureTestingModule({
11 declarations: [ VorgangComponent ]
17 fixture = TestBed.createComponent(VorgangComponent);
18 component = fixture.componentInstance;
19 fixture.detectChanges();
22 it('should create', () => {
23 expect(component).toBeTruthy();
26 it('should render vorgang', () => {
27 const fixture = TestBed.createComponent(VorgangComponent);
28 fixture.detectChanges();
29 const compiled = fixture.debugElement.nativeElement;
30 expect(compiled.querySelector('p').textContent).toContain('Hello world!');