May 2018
Intermediate to advanced
512 pages
11h 3m
English
The AppComponent should create the app test is failing. If you observe the error details, you'll see that AppComponent is failing to be created, because 'app-current-weather' is not a known element. Further, the error occurs if pointed out with a [ERROR ->] tag, and the last line spells things out for us, similar to the error originating from line 6 in AppComponent.html.
Include CurrentWeatherComponent in the declarations of app.component.spec.ts:
src/app/app.component.spec.ts...TestBed.configureTestingModule({ declarations: [AppComponent, CurrentWeatherComponent],}).compileComponents()...
Read now
Unlock full access