Skip to content

Commit

Permalink
Updated specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed May 20, 2018
1 parent 462413a commit a86d1be
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/containers/app/app.component.spec.ts
Expand Up @@ -26,6 +26,7 @@ describe('AppComponent', () => {
services.DbService,
services.WindowService,
services.DonationService,
services.ElectronAppService,
{ provide: services.QueryService, useValue: {
loadQuery: () => {},
loadUrl: () => {},
Expand Down
21 changes: 20 additions & 1 deletion src/app/services/electron-app/electron-app.service.spec.ts
@@ -1,11 +1,30 @@
import { TestBed, inject } from '@angular/core/testing';

import { ElectronAppService } from './electron-app.service';
import { Store, StoreModule } from '@ngrx/store';
import { WindowService, DbService } from '..';
import { NgxElectronModule } from 'ngx-electron';
import { Observable } from 'rxjs/Observable';

describe('ElectronAppService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [ElectronAppService]
imports: [
NgxElectronModule,
],
providers: [
ElectronAppService,
WindowService,
DbService,
{
provide: Store, useValue: {
subscribe: () => { },
select: () => [],
map: () => Observable.empty(),
dispatch: () => { }
}
}
]
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/app/services/index.ts
Expand Up @@ -5,4 +5,4 @@ export { QueryService } from './query.service';
export { WindowService } from './window.service';
export { NotifyService } from './notify/notify.service';
export { DonationService } from './donation.service';
export { ElectronAppService } from './electron-app/electron-app.service';
export { ElectronAppService } from './electron-app/electron-app.service';

0 comments on commit a86d1be

Please sign in to comment.