mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Chore: update to Angular v18 (#7106)
This commit is contained in:
@@ -5,8 +5,9 @@ import { SettingsService } from '../services/settings.service'
|
||||
import { DocumentListComponent } from '../components/document-list/document-list.component'
|
||||
import { RouterTestingModule } from '@angular/router/testing'
|
||||
import { routes } from '../app-routing.module'
|
||||
import { HttpClientTestingModule } from '@angular/common/http/testing'
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing'
|
||||
import { ConfirmDialogComponent } from '../components/common/confirm-dialog/confirm-dialog.component'
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
|
||||
|
||||
describe('DirtySavedViewGuard', () => {
|
||||
let guard: DirtySavedViewGuard
|
||||
@@ -16,17 +17,16 @@ describe('DirtySavedViewGuard', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ConfirmDialogComponent],
|
||||
imports: [RouterTestingModule.withRoutes(routes)],
|
||||
providers: [
|
||||
DirtySavedViewGuard,
|
||||
SettingsService,
|
||||
NgbModal,
|
||||
DocumentListComponent,
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideHttpClientTesting(),
|
||||
],
|
||||
imports: [
|
||||
RouterTestingModule.withRoutes(routes),
|
||||
HttpClientTestingModule,
|
||||
],
|
||||
declarations: [ConfirmDialogComponent],
|
||||
})
|
||||
|
||||
settingsService = TestBed.inject(SettingsService)
|
||||
|
Reference in New Issue
Block a user