mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 12:36:53 +00:00
Allow enable/disable update checking (and release notes) in the dialog
This commit is contained in:
5 files changed
+111
-12
No files matched your search
@@ -741,6 +741,19 @@ describe('AppFrameComponent', () => {
|
||||
httpTestingController.expectNone(`${environment.apiBaseUrl}ui_settings/`)
|
||||
})
|
||||
|
||||
it('should save update checking chosen in the release notes dialog', () => {
|
||||
const setUpdateCheckingSpy = jest
|
||||
.spyOn(component, 'setUpdateChecking')
|
||||
.mockImplementation(() => {})
|
||||
const modalSpy = jest.spyOn(modalService, 'open')
|
||||
component.showReleaseNotes()
|
||||
|
||||
const dialog = modalSpy.mock.results[0].value
|
||||
.componentInstance as ReleaseNotesDialogComponent
|
||||
dialog.updateCheckingChosen.emit(true)
|
||||
expect(setUpdateCheckingSpy).toHaveBeenCalledWith(true)
|
||||
})
|
||||
|
||||
it('should show new release dot instead of documentation in slim sidebar', () => {
|
||||
settingsService.set(SETTINGS_KEYS.SLIM_SIDEBAR, true)
|
||||
settingsService.set(SETTINGS_KEYS.VERSION, '3.5.1')
|
||||
|
||||
Reference in new issue
Block a user