Skip to content
Snippets Groups Projects
Verified Commit beb977aa authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7473 revert change

Based on CR comment.
parent fa8af846
No related branches found
No related tags found
1 merge request!104Administration: Neu hinzugefügte Felder für Statistik speichern
...@@ -26,8 +26,8 @@ import { ComponentFixture } from '@angular/core/testing'; ...@@ -26,8 +26,8 @@ import { ComponentFixture } from '@angular/core/testing';
import { By } from '@angular/platform-browser'; import { By } from '@angular/platform-browser';
import { EventData } from './model'; import { EventData } from './model';
export function getElementFromFixtureByType<T>(fixture: ComponentFixture<any>, component: Type<T>): T | null { export function getElementFromFixtureByType<T>(fixture: ComponentFixture<any>, component: Type<T>): T {
return getDebugElementFromFixtureByType(fixture, component)?.componentInstance as T; return getDebugElementFromFixtureByType(fixture, component).componentInstance as T;
} }
function getDebugElementFromFixtureByType<T>(fixture: ComponentFixture<any>, component: Type<T>): DebugElement { function getDebugElementFromFixtureByType<T>(fixture: ComponentFixture<any>, component: Type<T>): DebugElement {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment