Skip to content

Commit 94626a2

Browse files
committed
fix(@angular-devkit/build-angular): serve assets
1 parent 379f67e commit 94626a2

File tree

1 file changed

+4
-2
lines changed
  • packages/angular_devkit/build_angular/src/builders/karma/tests/options

1 file changed

+4
-2
lines changed

packages/angular_devkit/build_angular/src/builders/karma/tests/options/styles_spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ describeKarmaBuilder(execute, KARMA_BUILDER_INFO, (harness, setupTarget) => {
3838
declarations: [AppComponent]
3939
}));
4040
41-
it('should not contain text that is hidden via css', () => {
41+
it('should not contain text that is hidden via css', async () => {
4242
const fixture = TestBed.createComponent(AppComponent);
43+
await fixture.whenStable();
4344
expect(fixture.nativeElement.innerText).not.toContain('Hello World');
4445
});
4546
});`,
@@ -101,8 +102,9 @@ describeKarmaBuilder(execute, KARMA_BUILDER_INFO, (harness, setupTarget) => {
101102
imports: [HttpClientModule],
102103
declarations: [AppComponent]
103104
}));
104-
it('should create the app', () => {
105+
it('should create the app', async () => {
105106
const fixture = TestBed.createComponent(AppComponent);
107+
await fixture.whenStable();
106108
const app = fixture.debugElement.componentInstance;
107109
expect(app).toBeTruthy();
108110
});

0 commit comments

Comments
 (0)