initial commit

This commit is contained in:
Roberto Treviño Cervantes
2026-09-21 10:23:37 -06:00
commit 3605d23fc0
25 changed files with 8626 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [
provideBrowserGlobalErrorListeners(),
provideRouter(routes)
]
};
+7
View File
@@ -0,0 +1,7 @@
<mat-toolbar color="primary">
<span>{{ title }}</span>
</mat-toolbar>
<main>
<router-outlet />
</main>
+3
View File
@@ -0,0 +1,3 @@
import { Routes } from '@angular/router';
export const routes: Routes = [];
+3
View File
@@ -0,0 +1,3 @@
main {
padding: 1.5rem;
}
+25
View File
@@ -0,0 +1,25 @@
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 the toolbar title', async () => {
const fixture = TestBed.createComponent(App);
await fixture.whenStable();
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('mat-toolbar')?.textContent).toContain('ISSSTELEON');
});
});
+13
View File
@@ -0,0 +1,13 @@
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { MatToolbarModule } from '@angular/material/toolbar';
@Component({
imports: [RouterOutlet, MatToolbarModule],
selector: 'app-root',
styleUrl: './app.scss',
templateUrl: './app.html',
})
export class App {
protected readonly title = 'ISSSTELEON';
}