mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-10 00:18:57 +00:00
Chore: update to Angular v18 (#7106)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { HttpClientTestingModule } from '@angular/common/http/testing'
|
||||
import { provideHttpClientTesting } from '@angular/common/http/testing'
|
||||
import {
|
||||
ComponentFixture,
|
||||
TestBed,
|
||||
@@ -15,6 +15,7 @@ import { UploadDocumentsService } from 'src/app/services/upload-documents.servic
|
||||
import { ToastsComponent } from '../common/toasts/toasts.component'
|
||||
import { FileDropComponent } from './file-drop.component'
|
||||
import { NgxFileDropEntry, NgxFileDropModule } from 'ngx-file-drop'
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
|
||||
|
||||
describe('FileDropComponent', () => {
|
||||
let component: FileDropComponent
|
||||
@@ -27,8 +28,11 @@ describe('FileDropComponent', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [FileDropComponent, ToastsComponent],
|
||||
providers: [],
|
||||
imports: [HttpClientTestingModule, NgxFileDropModule],
|
||||
imports: [NgxFileDropModule],
|
||||
providers: [
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideHttpClientTesting(),
|
||||
],
|
||||
}).compileComponents()
|
||||
|
||||
permissionsService = TestBed.inject(PermissionsService)
|
||||
|
Reference in New Issue
Block a user