feat: simple remote control support on http

This commit is contained in:
Serkan committed 2024-10-09 18:22:57 +03:00
1 parent d6a07cc0cd
commit afa6e9f348
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -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);
});
});
@@ -62,6 +62,8 @@ const DEFAULT_SETTINGS = {
theme: Theme.LightTheme,
mpvPlayerPath: '',
vlcPlayerPath: '',
remoteControl: false,
remoteControlPort: 3000
};
describe('SettingsComponent', () => {