From f29aa2130008afe89f77152f1cbfecb0936efcd4 Mon Sep 17 00:00:00 2001 From: Dmitry Romanov Date: Tue, 14 May 2024 20:13:16 -0400 Subject: [PATCH] [ng] Fix unit tests --- .../app/input-config/input-config.component.spec.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/firebird-ng/src/app/input-config/input-config.component.spec.ts b/firebird-ng/src/app/input-config/input-config.component.spec.ts index b5f19fe..2fe214e 100644 --- a/firebird-ng/src/app/input-config/input-config.component.spec.ts +++ b/firebird-ng/src/app/input-config/input-config.component.spec.ts @@ -2,7 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserModule } from '@angular/platform-browser'; import { ReactiveFormsModule } from '@angular/forms'; import { InputConfigComponent } from './input-config.component'; - +import { provideRouter } from '@angular/router'; describe('InputConfigComponent', () => { @@ -11,7 +11,13 @@ describe('InputConfigComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [InputConfigComponent] + imports: [InputConfigComponent], + providers: [provideRouter([ + { + path: 'display', + loadComponent: () => import('../main-display/main-display.component').then(m => m.MainDisplayComponent) + }, + ])], }) .compileComponents();