Skip to content
Snippets Groups Projects
Commit 99625745 authored by Tom Käsler's avatar Tom Käsler
Browse files

add AppConfig Provider to test scope

parent ce16d899
1 merge request!152Fix pipeline
Pipeline #24004 passed with stages
in 5 minutes and 14 seconds
import { APP_INITIALIZER } from '@angular/core';
import { initializeApp } from './app.module';
import { AppConfig } from './app.config';
import { TestBed, async } from '@angular/core/testing'; import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { SharedModule } from './components/shared/shared.module'; import { SharedModule } from './components/shared/shared.module';
...@@ -16,6 +19,11 @@ describe('AppComponent', () => { ...@@ -16,6 +19,11 @@ describe('AppComponent', () => {
AppComponent AppComponent
], ],
providers: [ providers: [
AppConfig,
{ provide: APP_INITIALIZER,
useFactory: initializeApp,
deps: [AppConfig], multi: true
},
AuthenticationService, AuthenticationService,
DataStoreService, DataStoreService,
NotificationService, NotificationService,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment