100% coverage

This commit is contained in:
shamoon
2024-01-12 02:31:49 -08:00
parent e5348b8b7b
commit 80699183c9
2 changed files with 45 additions and 0 deletions

View File

@@ -194,4 +194,14 @@ describe('DashboardComponent', () => {
>)
expect(toastSpy).toHaveBeenCalled()
})
it('should get custom app title', () => {
const title = 'FooBar'
expect(component.subtitle).toContain('Paperless-ngx')
expect(component.subtitle).not.toContain(title)
jest.spyOn(settingsService, 'get').mockImplementation((key) => {
if (key === SETTINGS_KEYS.APP_TITLE) return title
})
expect(component.subtitle).toContain(title)
})
})