mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Chore: update to Angular v18 (#7106)
This commit is contained in:
parent
4f1185c65d
commit
3435ffd00c
93 changed files with 3461 additions and 2829 deletions
|
|
@ -2,9 +2,10 @@ import { TestBed } from '@angular/core/testing'
|
|||
import { LocalizedDateParserFormatter } from './ngb-date-parser-formatter'
|
||||
import { SettingsService } from '../services/settings.service'
|
||||
import {
|
||||
HttpClientTestingModule,
|
||||
HttpTestingController,
|
||||
provideHttpClientTesting,
|
||||
} from '@angular/common/http/testing'
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
|
||||
|
||||
describe('LocalizedDateParserFormatter', () => {
|
||||
let dateParserFormatter: LocalizedDateParserFormatter
|
||||
|
|
@ -13,8 +14,13 @@ describe('LocalizedDateParserFormatter', () => {
|
|||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [LocalizedDateParserFormatter, SettingsService],
|
||||
imports: [HttpClientTestingModule],
|
||||
imports: [],
|
||||
providers: [
|
||||
LocalizedDateParserFormatter,
|
||||
SettingsService,
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideHttpClientTesting(),
|
||||
],
|
||||
})
|
||||
|
||||
dateParserFormatter = TestBed.inject(LocalizedDateParserFormatter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue