@@ -2,7 +2,7 @@ import { Component, Provider } from '@angular/core';
2
2
import { TestBed } from '@angular/core/testing' ;
3
3
import { NavigationEnd , Router , RouterStateSnapshot } from '@angular/router' ;
4
4
import { RouterTestingModule } from '@angular/router/testing' ;
5
- import { Store , StoreModule } from '@ngrx/store' ;
5
+ import { Store , StoreModule , ScannedActionsSubject } from '@ngrx/store' ;
6
6
import { filter , first , mapTo , take } from 'rxjs/operators' ;
7
7
8
8
import {
@@ -19,7 +19,6 @@ import {
19
19
ROUTER_REQUEST ,
20
20
ROUTER_NAVIGATED ,
21
21
} from '../src/router_store_module' ;
22
- import { EffectsModule , Actions } from '@ngrx/effects' ;
23
22
24
23
describe ( 'integration spec' , ( ) => {
25
24
it ( 'should work' , ( done : any ) => {
@@ -709,7 +708,6 @@ function createTestModule(
709
708
declarations : [ AppCmp , SimpleCmp ] ,
710
709
imports : [
711
710
StoreModule . forRoot ( opts . reducers ) ,
712
- EffectsModule . forRoot ( [ ] ) ,
713
711
RouterTestingModule . withRoutes ( [
714
712
{ path : '' , component : SimpleCmp } ,
715
713
{
@@ -760,7 +758,8 @@ function waitForNavigation(router: Router) {
760
758
function logOfRouterAndActionsAndStore ( ) : any [ ] {
761
759
const router : Router = TestBed . get ( Router ) ;
762
760
const store : Store < any > = TestBed . get ( Store ) ;
763
- const actions$ : Actions = TestBed . get ( Actions ) ;
761
+ // Not using effects' Actions to avoid @ngrx/effects dependency
762
+ const actions$ : ScannedActionsSubject = TestBed . get ( ScannedActionsSubject ) ;
764
763
const log : any [ ] = [ ] ;
765
764
router . events . subscribe ( e => {
766
765
if ( e . hasOwnProperty ( 'url' ) ) {
0 commit comments