add pages
This commit is contained in:
+15
-2
@@ -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('Города');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user