mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-29 13:48:09 -06:00
Chore: update to Angular v18 (#7106)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { TestBed } from '@angular/core/testing'
|
||||
import { OpenDocumentsService } from './open-documents.service'
|
||||
import {
|
||||
HttpClientTestingModule,
|
||||
HttpTestingController,
|
||||
provideHttpClientTesting,
|
||||
} from '@angular/common/http/testing'
|
||||
import { environment } from 'src/environments/environment'
|
||||
import { Subscription, throwError } from 'rxjs'
|
||||
@@ -10,6 +10,7 @@ import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { ConfirmDialogComponent } from '../components/common/confirm-dialog/confirm-dialog.component'
|
||||
import { OPEN_DOCUMENT_SERVICE } from '../data/storage-keys'
|
||||
import { wind } from 'ngx-bootstrap-icons'
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
|
||||
|
||||
const documents = [
|
||||
{
|
||||
@@ -56,9 +57,14 @@ describe('OpenDocumentsService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [OpenDocumentsService, NgbModal],
|
||||
imports: [HttpClientTestingModule],
|
||||
declarations: [ConfirmDialogComponent],
|
||||
imports: [],
|
||||
providers: [
|
||||
OpenDocumentsService,
|
||||
NgbModal,
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideHttpClientTesting(),
|
||||
],
|
||||
})
|
||||
|
||||
sessionStorage.clear()
|
||||
|
||||
Reference in New Issue
Block a user