Skip to content

Commit 341e4ae

Browse files
committed
Add coverage
1 parent 78a5b02 commit 341e4ae

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

apps/e2e/tiles-storybook/src/app/tile-dashboard/tile-dashboard.component.spec.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { ComponentFixture, TestBed, fakeAsync } from '@angular/core/testing';
1+
import {
2+
ComponentFixture,
3+
TestBed,
4+
fakeAsync,
5+
tick,
6+
} from '@angular/core/testing';
27
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
38

49
import { TileDashboardComponent } from './tile-dashboard.component';
@@ -33,9 +38,8 @@ describe('TileDashboardComponent', () => {
3338

3439
it('should create', fakeAsync(() => {
3540
expect(component).toBeTruthy();
36-
fixture.detectChanges();
37-
fixture.whenStable().then(() => {
38-
expect(component.ready$.getValue()).toBeTruthy();
39-
});
41+
component.ngAfterViewInit();
42+
tick();
43+
expect(component.ready$.getValue()).toBeTruthy();
4044
}));
4145
});

0 commit comments

Comments
 (0)