diff --git a/src/app/info/accessibility-settings/accessibility-settings.component.spec.ts b/src/app/info/accessibility-settings/accessibility-settings.component.spec.ts index 3ba0e1ab96..bcd4ff94c8 100644 --- a/src/app/info/accessibility-settings/accessibility-settings.component.spec.ts +++ b/src/app/info/accessibility-settings/accessibility-settings.component.spec.ts @@ -50,6 +50,10 @@ describe('AccessibilitySettingsComponent', () => { it('should retrieve the current settings', () => { expect(settingsService.getAll).toHaveBeenCalled(); }); + + it('should convert retrieved settings to form format', () => { + expect(settingsService.convertStoredValuesToFormValues).toHaveBeenCalled(); + }); }); describe('saveSettings', () => { @@ -59,6 +63,12 @@ describe('AccessibilitySettingsComponent', () => { expect(settingsService.setSettings).toHaveBeenCalled(); }); + it('should convert form settings to stored format', () => { + settingsService.setSettings = jasmine.createSpy('setSettings').and.returnValue(of('cookie')); + component.saveSettings(); + expect(settingsService.convertFormValuesToStoredValues).toHaveBeenCalled(); + }); + it('should give the user a notification mentioning where the settings were saved', () => { settingsService.setSettings = jasmine.createSpy('setSettings').and.returnValue(of('cookie')); component.saveSettings();