mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-20 03:06:10 -05:00
Chore: update to Angular v18 (#7106)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { TestBed } from '@angular/core/testing'
|
||||
import { DocumentListViewService } from './document-list-view.service'
|
||||
import {
|
||||
HttpClientTestingModule,
|
||||
HttpTestingController,
|
||||
provideHttpClientTesting,
|
||||
} from '@angular/common/http/testing'
|
||||
import { environment } from 'src/environments/environment'
|
||||
import { Subscription } from 'rxjs'
|
||||
@@ -24,6 +24,7 @@ import {
|
||||
DisplayField,
|
||||
DEFAULT_DISPLAY_FIELDS,
|
||||
} from '../data/document'
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
|
||||
|
||||
const documents = [
|
||||
{
|
||||
@@ -91,13 +92,16 @@ describe('DocumentListViewService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [DocumentListViewService, PermissionsGuard, SettingsService],
|
||||
imports: [
|
||||
HttpClientTestingModule,
|
||||
RouterTestingModule.withRoutes(routes),
|
||||
],
|
||||
declarations: [ConfirmDialogComponent],
|
||||
teardown: { destroyAfterEach: true },
|
||||
imports: [RouterTestingModule.withRoutes(routes)],
|
||||
providers: [
|
||||
DocumentListViewService,
|
||||
PermissionsGuard,
|
||||
SettingsService,
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideHttpClientTesting(),
|
||||
],
|
||||
})
|
||||
|
||||
sessionStorage.clear()
|
||||
|
Reference in New Issue
Block a user