From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 19 Jan 2025 18:46:57 +0000 (-0800) Subject: Fix failing test X-Git-Tag: v2.14.5~1^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1dde85c59cd9a2d3f03429d93442e0d24b9e728;p=thirdparty%2Fpaperless-ngx.git Fix failing test --- diff --git a/src-ui/src/app/components/not-found/not-found.component.spec.ts b/src-ui/src/app/components/not-found/not-found.component.spec.ts index 58861da446..219c6c1f9e 100644 --- a/src-ui/src/app/components/not-found/not-found.component.spec.ts +++ b/src-ui/src/app/components/not-found/not-found.component.spec.ts @@ -2,7 +2,9 @@ import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http' import { provideHttpClientTesting } from '@angular/common/http/testing' import { ComponentFixture, TestBed } from '@angular/core/testing' import { By } from '@angular/platform-browser' +import { RouterModule } from '@angular/router' import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons' +import { routes } from 'src/app/app-routing.module' import { LogoComponent } from '../common/logo/logo.component' import { NotFoundComponent } from './not-found.component' @@ -16,6 +18,7 @@ describe('NotFoundComponent', () => { NgxBootstrapIconsModule.pick(allIcons), NotFoundComponent, LogoComponent, + RouterModule.forRoot(routes), ], providers: [ provideHttpClient(withInterceptorsFromDi()),