Compare commits

...

2 Commits

Author SHA1 Message Date
Костя 9bb792f233 new commit 2 2025-06-17 15:22:47 +03:00
Костя 9d74bb4610 new value 2025-06-17 15:22:26 +03:00
4 changed files with 4 additions and 29 deletions

View File

@ -4,9 +4,9 @@ import { RouterOutlet } from '@angular/router';
@Component({
selector: 'app-root',
imports: [RouterOutlet],
templateUrl: './app.html',
styleUrl: './app.scss'
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
})
export class App {
protected title = 'angular-tour-of-heroes';
}
}

View File

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

View File

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