|
|
|
@ -6,7 +6,6 @@ import { SetLanguage } from '../actions'; |
|
|
|
import { Config } from '../models/config'; |
|
|
|
import { ApplicationConfigurationService, ConfigStateService } from '../services'; |
|
|
|
import { ConfigState } from '../states'; |
|
|
|
import { OAuthService } from 'angular-oauth2-oidc'; |
|
|
|
|
|
|
|
export const CONFIG_STATE_DATA = { |
|
|
|
environment: { |
|
|
|
@ -108,14 +107,14 @@ describe('ConfigState', () => { |
|
|
|
|
|
|
|
const createService = createServiceFactory({ |
|
|
|
service: ConfigStateService, |
|
|
|
mocks: [ApplicationConfigurationService, Store, HttpClient, OAuthService], |
|
|
|
mocks: [ApplicationConfigurationService, Store, HttpClient], |
|
|
|
}); |
|
|
|
|
|
|
|
beforeEach(() => { |
|
|
|
spectator = createService(); |
|
|
|
store = spectator.inject(Store); |
|
|
|
service = spectator.service; |
|
|
|
state = new ConfigState(spectator.inject(HttpClient), store, spectator.inject(OAuthService)); |
|
|
|
state = new ConfigState(spectator.inject(HttpClient), store); |
|
|
|
}); |
|
|
|
|
|
|
|
describe('#getAll', () => { |
|
|
|
|