Created
November 14, 2018 12:34
-
-
Save LironHazan/2d71424a4823fb4f66ed4f9fd0c0825a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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