100% coverage
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user