generated from nhcarrigan/template
28 lines
778 B
TypeScript
28 lines
778 B
TypeScript
import { ComponentFixture, TestBed } from "@angular/core/testing";
|
|
|
|
import { AppComponent } from "./app.component";
|
|
|
|
describe("AppComponent", () => {
|
|
let component: AppComponent;
|
|
let fixture: ComponentFixture<AppComponent>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
imports: [AppComponent]
|
|
}).compileComponents();
|
|
fixture = TestBed.createComponent(AppComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it("should create the app", () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
|
|
it(`should have the 'nhcarrigan' title`, () => {
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
const app = fixture.componentInstance;
|
|
expect(app.title).toEqual("nhcarrigan");
|
|
});
|
|
});
|