first code for switch to angular

This commit is contained in:
danielvici123
2025-11-14 20:07:29 +01:00
parent c47ed6f805
commit 87b71d96bc
44 changed files with 8833 additions and 3627 deletions

23
src/app/app.spec.ts Normal file
View File

@@ -0,0 +1,23 @@
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', () => {
const fixture = TestBed.createComponent(App);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, tools-website');
});
});