Warning, /firebird/firebird-ng/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 { AppComponent } from './app.component';
0003 import {provideRouter} from '@angular/router';
0004 import {Component, NO_ERRORS_SCHEMA} from "@angular/core";
0005
0006 // Mock the external component
0007 @Component({
0008 selector: 'lib-view-options', // Replace with the actual selector
0009 template: '',
0010 standalone: false
0011 })
0012 class MockViewOptionsComponent {}
0013
0014 describe('AppComponent', () => {
0015 beforeEach(async () => {
0016 await TestBed.configureTestingModule({
0017 imports: [AppComponent],
0018 declarations: [MockViewOptionsComponent],
0019 providers: [provideRouter([])],
0020 schemas: [NO_ERRORS_SCHEMA]
0021 }).compileComponents();
0022 });
0023
0024 it('should create the app', () => {
0025 const fixture = TestBed.createComponent(AppComponent);
0026 fixture.detectChanges();
0027 const app = fixture.componentInstance;
0028 expect(app).toBeTruthy();
0029 });
0030
0031 it(`should have the 'firebird' title`, () => {
0032 const fixture = TestBed.createComponent(AppComponent);
0033 fixture.detectChanges();
0034 const app = fixture.componentInstance;
0035 expect(app.title).toEqual('Firebird');
0036 });
0037
0038 // it('should render title', () => {
0039 // const fixture = TestBed.createComponent(AppComponent);
0040 // fixture.detectChanges();
0041 // const compiled = fixture.nativeElement as HTMLElement;
0042 // expect(compiled.querySelector('h1')?.textContent).toContain('Hello, firebird');
0043 // });
0044 });