This commit is contained in:
ziajka 2018-04-06 10:04:11 +02:00
parent dd98b69f3a
commit 37acae2697

View File

@ -52,7 +52,6 @@ describe('AppComponent', () => {
})); }));
it('should receive changed settings and forward to electron', async(() => { it('should receive changed settings and forward to electron', async(() => {
// when(electronService.isElectronApp).thenReturn(true);
const spy = createSpyObj('Electron.IpcRenderer', ['send']); const spy = createSpyObj('Electron.IpcRenderer', ['send']);
spyOnProperty(electronService, 'isElectronApp').and.returnValue(true); spyOnProperty(electronService, 'isElectronApp').and.returnValue(true);
spyOnProperty(electronService, 'ipcRenderer').and.returnValue(spy); spyOnProperty(electronService, 'ipcRenderer').and.returnValue(spy);
@ -65,7 +64,6 @@ describe('AppComponent', () => {
})); }));
it('should receive changed settings and do not forward to electron', async(() => { it('should receive changed settings and do not forward to electron', async(() => {
// when(electronService.isElectronApp).thenReturn(true);
const spy = createSpyObj('Electron.IpcRenderer', ['send']); const spy = createSpyObj('Electron.IpcRenderer', ['send']);
spyOnProperty(electronService, 'isElectronApp').and.returnValue(false); spyOnProperty(electronService, 'isElectronApp').and.returnValue(false);
settingsService.set('crash_reports', true); settingsService.set('crash_reports', true);