mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-12 00:19:48 +00:00
Enhancement: angular 19 (#8584)
This commit is contained in:
@@ -92,9 +92,8 @@ describe('DocumentListViewService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ConfirmDialogComponent],
|
||||
teardown: { destroyAfterEach: true },
|
||||
imports: [RouterTestingModule.withRoutes(routes)],
|
||||
imports: [RouterTestingModule.withRoutes(routes), ConfirmDialogComponent],
|
||||
providers: [
|
||||
DocumentListViewService,
|
||||
PermissionsGuard,
|
||||
|
@@ -56,8 +56,7 @@ describe('OpenDocumentsService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ConfirmDialogComponent],
|
||||
imports: [],
|
||||
imports: [ConfirmDialogComponent],
|
||||
providers: [
|
||||
OpenDocumentsService,
|
||||
NgbModal,
|
||||
|
@@ -10,7 +10,6 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { CookieService } from 'ngx-cookie-service'
|
||||
import { of, Subscription } from 'rxjs'
|
||||
import { environment } from 'src/environments/environment'
|
||||
import { AppModule } from '../app.module'
|
||||
import { CustomFieldDataType } from '../data/custom-field'
|
||||
import { DEFAULT_DISPLAY_FIELDS, DisplayField } from '../data/document'
|
||||
import { SavedView } from '../data/saved-view'
|
||||
@@ -92,7 +91,6 @@ describe('SettingsService', () => {
|
||||
NgbModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
AppModule,
|
||||
],
|
||||
providers: [
|
||||
SettingsService,
|
||||
@@ -108,6 +106,8 @@ describe('SettingsService', () => {
|
||||
permissionService = TestBed.inject(PermissionsService)
|
||||
settingsService = TestBed.inject(SettingsService)
|
||||
toastService = TestBed.inject(ToastService)
|
||||
// Normally done in app initializer
|
||||
settingsService.initializeSettings().subscribe()
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
Reference in New Issue
Block a user