Browse Source

test: fix testing error

pull/4956/head
mehmet-erim 6 years ago
parent
commit
ca19028600
  1. 5
      npm/ng-packs/packages/core/src/lib/tests/config.state.spec.ts

5
npm/ng-packs/packages/core/src/lib/tests/config.state.spec.ts

@ -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', () => {

Loading…
Cancel
Save