chore: add component suffix, remove spec file
This commit is contained in:
parent
28e152d21d
commit
bdb70b9c69
@ -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');
|
||||
}
|
||||
@ -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');
|
||||
});
|
||||
});
|
||||
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user