diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index d2453c1b4..dae2626dd 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -219,7 +219,7 @@ describe('AppComponent', () => { expect(spyOnSettingsGet).toHaveBeenCalledWith(STORE_KEY.Settings); expect(settingsService.changeTheme).toHaveBeenCalledWith(theme); - expect(electronService.sendIpcEvent).toHaveBeenCalledTimes(1); + expect(electronService.sendIpcEvent).toHaveBeenCalledTimes(2); expect(translateService.use).toHaveBeenCalledWith(language); }); @@ -245,7 +245,7 @@ describe('AppComponent', () => { expect(spyOnSettingsGet).toHaveBeenCalledWith(STORE_KEY.Settings); expect(settingsService.changeTheme).toHaveBeenCalledWith(theme); - expect(electronService.sendIpcEvent).toHaveBeenCalledTimes(0); + expect(electronService.sendIpcEvent).toHaveBeenCalledTimes(1); expect(translateService.use).toHaveBeenCalledWith(defaultLanguage); }); }); diff --git a/src/app/settings/settings.component.spec.ts b/src/app/settings/settings.component.spec.ts index 760112149..352783853 100644 --- a/src/app/settings/settings.component.spec.ts +++ b/src/app/settings/settings.component.spec.ts @@ -62,6 +62,8 @@ const DEFAULT_SETTINGS = { theme: Theme.LightTheme, mpvPlayerPath: '', vlcPlayerPath: '', + remoteControl: false, + remoteControlPort: 3000 }; describe('SettingsComponent', () => {