Closed mahidaturgana closed 5 years ago
Sorry for the late reply. I can generate a test scaffold from that code without errors. Are you using v1.5.1 or above?
Here's the output I get:
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { NO_ERRORS_SCHEMA } from "@angular/core";
import { AppComponent } from "./boot.browser";
describe("AppComponent", () => {
let component: AppComponent;
let fixture: ComponentFixture<AppComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
schemas: [NO_ERRORS_SCHEMA],
declarations: [AppComponent]
});
fixture = TestBed.createComponent(AppComponent);
component = fixture.componentInstance;
});
it("can load instance", () => {
expect(component).toBeTruthy();
});
});
Oddly enough I had an unused import line which I removed before posting. That along with everything else seems to be the culprit.
Ah, pick up v1.5.2 and let me know how it goes.
Thanks
Just like what I reported on #30 but under slightly different circumstances, here is the app.component.ts: