mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-21 04:52:40 +00:00
Merge branch 'dev' into feature/ocr-templates
This commit is contained in:
408 files changed
+6392
-5987
No files matched your search
@@ -22,7 +22,6 @@ import {
|
||||
NgbModal,
|
||||
NgbModalRef,
|
||||
} from '@ng-bootstrap/ng-bootstrap'
|
||||
import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'
|
||||
import { DeviceDetectorService } from 'ngx-device-detector'
|
||||
import { Subject, of, throwError } from 'rxjs'
|
||||
import { routes } from 'src/app/app-routing.module'
|
||||
@@ -152,11 +151,7 @@ describe('DocumentDetailComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
DocumentDetailComponent,
|
||||
RouterModule.forRoot(routes),
|
||||
NgxBootstrapIconsModule.pick(allIcons),
|
||||
],
|
||||
imports: [DocumentDetailComponent, RouterModule.forRoot(routes)],
|
||||
providers: [
|
||||
DocumentTitlePipe,
|
||||
{
|
||||
@@ -890,31 +885,31 @@ describe('DocumentDetailComponent', () => {
|
||||
fixture.detectChanges()
|
||||
expect(
|
||||
fixture.debugElement
|
||||
.queryAll(By.css('button'))
|
||||
.find((b) => b.nativeElement.textContent === 'Save')
|
||||
.queryAll(By.css('button.btn'))
|
||||
.find((b) => b.nativeElement.textContent.trim() === 'Save')
|
||||
).not.toBeUndefined()
|
||||
expect(
|
||||
fixture.debugElement
|
||||
.queryAll(By.css('button'))
|
||||
.find((b) => b.nativeElement.textContent === 'Save & close')
|
||||
.queryAll(By.css('button.btn'))
|
||||
.find((b) => b.nativeElement.textContent.trim() === 'Save & close')
|
||||
).not.toBeUndefined()
|
||||
expect(
|
||||
fixture.debugElement
|
||||
.queryAll(By.css('button'))
|
||||
.find((b) => b.nativeElement.textContent === 'Save & next')
|
||||
.queryAll(By.css('button.btn'))
|
||||
.find((b) => b.nativeElement.textContent.trim() === 'Save & next')
|
||||
).toBeUndefined()
|
||||
nextSpy.mockReturnValue(true)
|
||||
component.networkActive.set(true)
|
||||
fixture.detectChanges()
|
||||
expect(
|
||||
fixture.debugElement
|
||||
.queryAll(By.css('button'))
|
||||
.find((b) => b.nativeElement.textContent === 'Save & close')
|
||||
.queryAll(By.css('button.btn'))
|
||||
.find((b) => b.nativeElement.textContent.trim() === 'Save & close')
|
||||
).toBeUndefined()
|
||||
expect(
|
||||
fixture.debugElement
|
||||
.queryAll(By.css('button'))
|
||||
.find((b) => b.nativeElement.textContent === 'Save & next')
|
||||
.queryAll(By.css('button.btn'))
|
||||
.find((b) => b.nativeElement.textContent.trim() === 'Save & next')
|
||||
).not.toBeUndefined()
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user