chore: add component suffix, remove spec file

This commit is contained in:
Flo 2026-11-01 11:04:34 +01:00
parent 28e152d21d
commit bdb70b9c69
5 changed files with 5 additions and 29 deletions

View File

@ -4,9 +4,9 @@ import { RouterOutlet } from '@angular/router';
@Component({
imports: [RouterOutlet],
selector: 'app-root',
styleUrl: './app.css',
templateUrl: './app.html',
styleUrl: './app.component.css',
templateUrl: './app.component.html',
})
export class App {
export class AppComponent {
protected readonly title = signal('mv-ng-typeahead');
}

View File

@ -1,24 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { App } from './app';
describe('App', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [App],
})
.compileComponents();
});
it('should create the app', () => {
const fixture = TestBed.createComponent(App);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
it('should render title', async () => {
const fixture = TestBed.createComponent(App);
await fixture.whenStable();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, mv-ng-typeahead');
});
});

View File

@ -1,6 +1,6 @@
import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { App } from './app/app';
import { AppComponent } from './app/app.component';
bootstrapApplication(App, appConfig)
bootstrapApplication(AppComponent, appConfig)
.catch((err) => console.error(err));