mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 19:40:34 +00:00
Managed mode: keep the admin settings and addons ratchets green
- The phone's OIDC card moves into MAdminOidcCard, so the settings section is back within its complexity limit after the managed-mode conditions. - enabledPhotoProviderIds reads the enabled ids straight from the repository and has a test of its own, which brings the addons coverage back to its threshold.
This commit is contained in:
@@ -375,6 +375,15 @@ describe('AddonsService.list', () => {
|
||||
expect(listSpy).not.toHaveBeenCalled();
|
||||
listSpy.mockRestore();
|
||||
});
|
||||
|
||||
it('names the photo providers users can connect: the enabled ones, none while the journey addon is off', async () => {
|
||||
await insertProvider({ id: 'immich', name: 'Immich', icon: 'image', enabled: 1 });
|
||||
await insertProvider({ id: 'off-provider', name: 'Off', icon: 'image', enabled: 0 });
|
||||
expect(await svc.enabledPhotoProviderIds()).toEqual([]);
|
||||
|
||||
stubJourneyEnabled();
|
||||
expect(await svc.enabledPhotoProviderIds()).toEqual(['immich']);
|
||||
});
|
||||
});
|
||||
|
||||
// Direct coverage of the enablement reads/writers relocated from
|
||||
|
||||
Reference in New Issue
Block a user