Skip to content

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Imolorhe committed Nov 5, 2017
1 parent d81b232 commit cb189df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"make": "electron-forge make"
},
"engines": {
"node": "6.10.0"
"node": ">= 6.9.1"
},
"private": true,
"dependencies": {
Expand Down
8 changes: 6 additions & 2 deletions src/app/containers/window/window.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { StoreModule, Store } from '@ngrx/store';
import { ToastModule } from 'ng2-toastr/ng2-toastr';

import * as services from './../../services';

import { CodemirrorModule } from 'ng2-codemirror';
Expand Down Expand Up @@ -35,7 +37,8 @@ describe('WindowComponent', () => {
select: () => [],
map: () => Observable.empty(),
dispatch: () => {}
} }
} },
services.NotifyService
];
TestBed.configureTestingModule({
declarations: [ WindowComponent ],
Expand All @@ -46,7 +49,8 @@ describe('WindowComponent', () => {
StoreModule,
CodemirrorModule,
ComponentModule,
DocViewerModule
DocViewerModule,
ToastModule.forRoot()
],
providers: providers
})
Expand Down
4 changes: 4 additions & 0 deletions src/app/services/notify/notify.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { TestBed, inject } from '@angular/core/testing';
import { ToastModule } from 'ng2-toastr/ng2-toastr';

import { NotifyService } from './notify.service';

describe('NotifyService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
ToastModule.forRoot()
],
providers: [NotifyService]
});
});
Expand Down

0 comments on commit cb189df

Please sign in to comment.