Skip to content

Instantly share code, notes, and snippets.

@LironHazan
Created November 14, 2018 12:34
Show Gist options
  • Save LironHazan/2d71424a4823fb4f66ed4f9fd0c0825a to your computer and use it in GitHub Desktop.
Save LironHazan/2d71424a4823fb4f66ed4f9fd0c0825a to your computer and use it in GitHub Desktop.
import { HttpClientTestingModule } from '@angular/common/http/testing';
import {NgModule} from "@angular/core";
import {LoginServiceStub} from "../stubs/services/login-service-stub";
import {LoginService} from "./login/login.service";
import {RouterTestingModule} from "@angular/router/testing";
import {LocalStorageWrapperStubService} from "../stubs/services/local-storage-wrapper.stub.service";
import {LocalStorageWrapperService} from "./services/local-storage-wrapper.service";
import {SystemSettingsServiceStub} from "../stubs/services/system-settings-service-stub";
import {SystemSettingsService} from "./services/store/system-settings.service";
import {FormBuilder, ReactiveFormsModule} from "@angular/forms";
@NgModule({
imports: [
HttpClientTestingModule,
RouterTestingModule,
ReactiveFormsModule
],
providers: [
FormBuilder,
{provide: SystemSettingsService, useClass: SystemSettingsServiceStub },
{provide: LoginService, useClass: LoginServiceStub},
{provide: LocalStorageWrapperService, useClass: LocalStorageWrapperStubService}
]
})
export class AppTestingModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment