@@ -3,14 +3,13 @@ import 'rxjs/add/operator/toArray';
3
3
import 'rxjs/add/operator/map' ;
4
4
import 'rxjs/add/observable/of' ;
5
5
import { ReflectiveInjector } from '@angular/core' ;
6
- import { Action , StoreModule , ActionsSubject } from '@ngrx/store' ;
7
-
6
+ import { Action , StoreModule , ScannedActionsSubject , ActionsSubject } from '@ngrx/store' ;
8
7
import { Actions } from '../src/actions' ;
9
8
10
9
11
10
describe ( 'Actions' , function ( ) {
12
11
let actions$ : Actions ;
13
- let dispatcher : ActionsSubject ;
12
+ let dispatcher : ScannedActionsSubject ;
14
13
15
14
const ADD = 'ADD' ;
16
15
const SUBTRACT = 'SUBTRACT' ;
@@ -33,10 +32,10 @@ describe('Actions', function() {
33
32
] ) ;
34
33
35
34
actions$ = injector . get ( Actions ) ;
36
- dispatcher = injector . get ( ActionsSubject ) ;
35
+ dispatcher = injector . get ( ScannedActionsSubject ) ;
37
36
} ) ;
38
37
39
- xit ( 'should be an observable of actions' , function ( ) {
38
+ it ( 'should be an observable of actions' , function ( ) {
40
39
const actions = [
41
40
{ type : ADD } ,
42
41
{ type : SUBTRACT } ,
@@ -45,7 +44,6 @@ describe('Actions', function() {
45
44
] ;
46
45
47
46
let iterations = [
48
- { type : ActionsSubject . INIT } ,
49
47
...actions
50
48
] ;
51
49
@@ -59,7 +57,7 @@ describe('Actions', function() {
59
57
actions . forEach ( action => dispatcher . next ( action ) ) ;
60
58
} ) ;
61
59
62
- xit ( 'should let you filter out actions' , function ( ) {
60
+ it ( 'should let you filter out actions' , function ( ) {
63
61
const actions = [ ADD , ADD , SUBTRACT , ADD , SUBTRACT ] ;
64
62
const expected = actions . filter ( type => type === ADD ) ;
65
63
0 commit comments