@@ -12,18 +12,18 @@ describe('Effects metadata', () => {
12
12
@Effect ( { dispatch : false } )
13
13
c : any ;
14
14
d = createEffect ( ( ) => of ( { type : 'a' } ) , { dispatch : false } ) ;
15
- @Effect ( { dispatch : false , resubscribeOnError : false } )
15
+ @Effect ( { dispatch : false , useEffectsErrorHandler : false } )
16
16
e : any ;
17
17
z : any ;
18
18
}
19
19
20
20
const mock = new Fixture ( ) ;
21
21
const expected : EffectMetadata < Fixture > [ ] = [
22
- { propertyName : 'a' , dispatch : true , resubscribeOnError : true } ,
23
- { propertyName : 'c' , dispatch : false , resubscribeOnError : true } ,
24
- { propertyName : 'b' , dispatch : true , resubscribeOnError : true } ,
25
- { propertyName : 'd' , dispatch : false , resubscribeOnError : true } ,
26
- { propertyName : 'e' , dispatch : false , resubscribeOnError : false } ,
22
+ { propertyName : 'a' , dispatch : true , useEffectsErrorHandler : true } ,
23
+ { propertyName : 'c' , dispatch : false , useEffectsErrorHandler : true } ,
24
+ { propertyName : 'b' , dispatch : true , useEffectsErrorHandler : true } ,
25
+ { propertyName : 'd' , dispatch : false , useEffectsErrorHandler : true } ,
26
+ { propertyName : 'e' , dispatch : false , useEffectsErrorHandler : false } ,
27
27
] ;
28
28
29
29
expect ( getSourceMetadata ( mock ) ) . toEqual (
@@ -45,20 +45,20 @@ describe('Effects metadata', () => {
45
45
e : any ;
46
46
f = createEffect ( ( ) => of ( { type : 'f' } ) , { dispatch : false } ) ;
47
47
g = createEffect ( ( ) => of ( { type : 'g' } ) , {
48
- resubscribeOnError : false ,
48
+ useEffectsErrorHandler : false ,
49
49
} ) ;
50
50
}
51
51
52
52
const mock = new Fixture ( ) ;
53
53
54
54
expect ( getEffectsMetadata ( mock ) ) . toEqual ( {
55
- a : { dispatch : true , resubscribeOnError : true } ,
56
- c : { dispatch : true , resubscribeOnError : true } ,
57
- e : { dispatch : false , resubscribeOnError : true } ,
58
- b : { dispatch : true , resubscribeOnError : true } ,
59
- d : { dispatch : true , resubscribeOnError : true } ,
60
- f : { dispatch : false , resubscribeOnError : true } ,
61
- g : { dispatch : true , resubscribeOnError : false } ,
55
+ a : { dispatch : true , useEffectsErrorHandler : true } ,
56
+ c : { dispatch : true , useEffectsErrorHandler : true } ,
57
+ e : { dispatch : false , useEffectsErrorHandler : true } ,
58
+ b : { dispatch : true , useEffectsErrorHandler : true } ,
59
+ d : { dispatch : true , useEffectsErrorHandler : true } ,
60
+ f : { dispatch : false , useEffectsErrorHandler : true } ,
61
+ g : { dispatch : true , useEffectsErrorHandler : false } ,
62
62
} ) ;
63
63
} ) ;
64
64
0 commit comments