Warning, /phoenix-eic-event-display/src/app/app.component.spec.ts is written in an unsupported language. File is not indexed.
0001 import { TestBed } from '@angular/core/testing';
0002 import { RouterTestingModule } from '@angular/router/testing';
0003 import { AppComponent } from './app.component';
0004
0005 describe('AppComponent', () => {
0006 beforeEach(async () => {
0007 await TestBed.configureTestingModule({
0008 imports: [
0009 RouterTestingModule
0010 ],
0011 declarations: [
0012 AppComponent
0013 ],
0014 }).compileComponents();
0015 });
0016
0017 it('should create the app', () => {
0018 const fixture = TestBed.createComponent(AppComponent);
0019 const app = fixture.componentInstance;
0020 expect(app).toBeTruthy();
0021 });
0022
0023 it(`should have as title 'phoenix-eic-event-display'`, () => {
0024 const fixture = TestBed.createComponent(AppComponent);
0025 const app = fixture.componentInstance;
0026 expect(app.title).toEqual('phoenix-eic-event-display');
0027 });
0028
0029 it('should render title', () => {
0030 const fixture = TestBed.createComponent(AppComponent);
0031 fixture.detectChanges();
0032 const compiled = fixture.nativeElement as HTMLElement;
0033 expect(compiled.querySelector('.content span')?.textContent).toContain('phoenix-eic-event-display app is running!');
0034 });
0035 });