Test coverage

This commit is contained in:
shamoon
2024-02-12 11:44:10 -08:00
parent 603f1397a8
commit fe480432cf
3 changed files with 70 additions and 19 deletions

View File

@@ -415,6 +415,11 @@ describe('SettingsComponent', () => {
completeSetup()
expect(component['systemStatus']).toEqual(status) // private
expect(component.systemStatusHasErrors).toBeTruthy()
// coverage
component['systemStatus'].database.status = PaperlessConnectionStatus.OK
component['systemStatus'].tasks.redis_status = PaperlessConnectionStatus.OK
component['systemStatus'].tasks.celery_status = PaperlessConnectionStatus.OK
expect(component.systemStatusHasErrors).toBeFalsy()
})
it('should open system status dialog', () => {