Skip to content

Commit

Permalink
Merge branch 'staging' into l10n_staging
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Nov 10, 2019
2 parents 9ac83d3 + 7b96c30 commit 0473474
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import { CodemirrorModule } from '@ctrl/ngx-codemirror';
import { TranslateModule } from '@ngx-translate/core';

import { SettingsDialogComponent } from './settings-dialog.component';
import { NotifyService, KeybinderService, WindowService, DbService, ElectronAppService, StorageService } from 'app/services';
import { NotifyService, KeybinderService, WindowService, DbService, ElectronAppService, StorageService, GqlService } from 'app/services';
import { ToastrModule } from 'ngx-toastr';
import { Store } from '@ngrx/store';
import { ElectronService } from 'ngx-electron';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { SharedModule } from 'app/shared/shared.module';
import { SchemaFormModule } from '../schema-form/schema-form.module';
import { HttpClientModule } from '@angular/common/http';

describe('SettingsDialogComponent', () => {
let component: SettingsDialogComponent;
Expand All @@ -23,6 +24,7 @@ describe('SettingsDialogComponent', () => {
TestBed.configureTestingModule({
declarations: [ SettingsDialogComponent ],
imports: [
HttpClientModule,
BrowserAnimationsModule,
FormsModule,
CodemirrorModule,
Expand All @@ -39,6 +41,7 @@ describe('SettingsDialogComponent', () => {
ElectronAppService,
ElectronService,
StorageService,
GqlService,
{
provide: Store, useValue: {
subscribe: () => { },
Expand Down
1 change: 1 addition & 0 deletions src/app/containers/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('AppComponent', () => {
services.NotifyService,
services.StorageService,
services.PluginRegistryService,
services.QueryCollectionService,
{ provide: services.QueryService, useValue: {
loadQuery: () => {},
loadUrl: () => {},
Expand Down
4 changes: 4 additions & 0 deletions src/app/services/electron-app/electron-app.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ import { WindowService, DbService, NotifyService } from '..';
import { NgxElectronModule } from 'ngx-electron';
import { empty as observableEmpty } from 'rxjs';
import { ToastrModule } from 'ngx-toastr';
import { GqlService } from '../gql/gql.service';
import { HttpClientModule } from '@angular/common/http';

describe('ElectronAppService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpClientModule,
NgxElectronModule,
ToastrModule.forRoot(),
],
Expand All @@ -19,6 +22,7 @@ describe('ElectronAppService', () => {
WindowService,
DbService,
NotifyService,
GqlService,
{
provide: Store, useValue: {
subscribe: () => { },
Expand Down
4 changes: 4 additions & 0 deletions src/app/services/keybinder/keybinder.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import { ElectronAppService } from '../electron-app/electron-app.service';
import { ElectronService } from 'ngx-electron';
import { NotifyService } from '../notify/notify.service';
import { ToastrModule } from 'ngx-toastr';
import { GqlService } from '../gql/gql.service';
import { HttpClientModule } from '@angular/common/http';

describe('KeybinderService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpClientModule,
ToastrModule.forRoot()
],
providers: [
Expand All @@ -23,6 +26,7 @@ describe('KeybinderService', () => {
ElectronAppService,
ElectronService,
NotifyService,
GqlService,
{
provide: Store, useValue: {
subscribe: () => { },
Expand Down
8 changes: 8 additions & 0 deletions src/app/services/window.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ import { StoreModule, Store } from '@ngrx/store';
import * as services from '../services';
import { WindowService } from './window.service';
import { GqlService } from './gql/gql.service';
import { HttpClientModule } from '@angular/common/http';
import { NotifyService } from './notify/notify.service';
import { ToastrModule } from 'ngx-toastr';

describe('WindowService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpClientModule,
ToastrModule.forRoot(),
],
providers: [
WindowService,
GqlService,
NotifyService,
services.DbService,
{ provide: Store, useValue: {
subscribe: () => {},
Expand Down

0 comments on commit 0473474

Please sign in to comment.