mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-24 01:02:45 -05:00
Feature: app branding (#5357)
This commit is contained in:
@@ -301,4 +301,16 @@ describe('SettingsService', () => {
|
||||
.expectOne(`${environment.apiBaseUrl}ui_settings/`)
|
||||
.flush(ui_settings)
|
||||
})
|
||||
|
||||
it('should update environment app title if set', () => {
|
||||
const settings = Object.assign({}, ui_settings)
|
||||
settings.settings['app_title'] = 'FooBar'
|
||||
const req = httpTestingController.expectOne(
|
||||
`${environment.apiBaseUrl}ui_settings/`
|
||||
)
|
||||
req.flush(settings)
|
||||
expect(environment.appTitle).toEqual('FooBar')
|
||||
// post for migrate
|
||||
httpTestingController.expectOne(`${environment.apiBaseUrl}ui_settings/`)
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user