Skip to content

Commit

Permalink
[ng] Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed May 15, 2024
1 parent 7665edf commit 955250a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions firebird-ng/src/app/input-config/input-config.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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();

Expand Down

0 comments on commit 955250a

Please sign in to comment.