add pages

This commit is contained in:
Artem
2026-09-29 01:55:20 +03:00
parent cd0543907b
commit 7e8cb26ddd
110 changed files with 7948 additions and 367 deletions
+15 -2
View File
@@ -1,10 +1,23 @@
import { TestBed } from '@angular/core/testing';
import { provideRouter } from '@angular/router';
import { provideServiceWorker } from '@angular/service-worker';
import { provideEffects } from '@ngrx/effects';
import { provideState, provideStore } from '@ngrx/store';
import { App } from './app';
import { GorodarEffects, gorodarFeature } from './state';
describe('App', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [App],
providers: [
provideRouter([]),
provideStore(),
provideState(gorodarFeature),
provideEffects(GorodarEffects),
provideServiceWorker('ngsw-worker.js', { enabled: false }),
],
}).compileComponents();
});
@@ -14,10 +27,10 @@ describe('App', () => {
expect(app).toBeTruthy();
});
it('should render title', () => {
it('should render bottom navigation', () => {
const fixture = TestBed.createComponent(App);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, maps');
expect(compiled.querySelector('app-bottom-nav')?.textContent).toContain('Города');
});
});