]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix failing test
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 19 Jan 2025 18:46:57 +0000 (10:46 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Sun, 19 Jan 2025 18:46:57 +0000 (10:46 -0800)
src-ui/src/app/components/not-found/not-found.component.spec.ts

index 58861da4465c98167e11401812ae4ed1ba8f29ab..219c6c1f9e6ab13e9b55b016afe4abfa54248daa 100644 (file)
@@ -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()),