Skip to content

Commit

Permalink
fix failing test caused by internal toActions
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Jan 13, 2020
1 parent e3c24ba commit 3789184
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/effects/spec/effect_sources.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
OnInitEffects,
createEffect,
} from '../';
import { EffectsRunner } from '../src/effects_runner';
import { Store } from '@ngrx/store';

describe('EffectSources', () => {
Expand All @@ -21,6 +22,7 @@ describe('EffectSources', () => {
TestBed.configureTestingModule({
providers: [
EffectSources,
EffectsRunner,
{
provide: Store,
useValue: {
Expand All @@ -30,6 +32,9 @@ describe('EffectSources', () => {
],
});

const effectsRunner = TestBed.get(EffectsRunner);
effectsRunner.start();

mockErrorReporter = TestBed.get(ErrorHandler);
effectSources = TestBed.get(EffectSources);

Expand All @@ -52,7 +57,6 @@ describe('EffectSources', () => {
}
}
const store = TestBed.get(Store);
effectSources.toActions().subscribe();

effectSources.addEffects(new EffectWithInitAction());

Expand All @@ -69,7 +73,6 @@ describe('EffectSources', () => {
}
}
const store = TestBed.get(Store);
effectSources.toActions().subscribe();

effectSources.addEffects(new EffectWithInitAction());
effectSources.addEffects(new EffectWithInitAction());
Expand All @@ -92,7 +95,6 @@ describe('EffectSources', () => {
}
}
const store = TestBed.get(Store);
effectSources.toActions().subscribe();

effectSources.addEffects(new EffectWithInitAction());
effectSources.addEffects(new EffectWithInitAction());
Expand Down

0 comments on commit 3789184

Please sign in to comment.