Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
99625745
Commit
99625745
authored
6 years ago
by
Tom Käsler
Browse files
Options
Downloads
Patches
Plain Diff
add AppConfig Provider to test scope
parent
ce16d899
1 merge request
!152
Fix pipeline
Pipeline
#24004
passed with stages
in 5 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/app.component.spec.ts
+8
-0
8 additions, 0 deletions
src/app/app.component.spec.ts
with
8 additions
and
0 deletions
src/app/app.component.spec.ts
+
8
−
0
View file @
99625745
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment