@@ -12,18 +12,18 @@ describe('Effects metadata', () => {
1212 @Effect ( { dispatch : false } )
1313 c : any ;
1414 d = createEffect ( ( ) => of ( { type : 'a' } ) , { dispatch : false } ) ;
15- @Effect ( { dispatch : false , resubscribeOnError : false } )
15+ @Effect ( { dispatch : false , useEffectsErrorHandler : false } )
1616 e : any ;
1717 z : any ;
1818 }
1919
2020 const mock = new Fixture ( ) ;
2121 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 } ,
2727 ] ;
2828
2929 expect ( getSourceMetadata ( mock ) ) . toEqual (
@@ -45,20 +45,20 @@ describe('Effects metadata', () => {
4545 e : any ;
4646 f = createEffect ( ( ) => of ( { type : 'f' } ) , { dispatch : false } ) ;
4747 g = createEffect ( ( ) => of ( { type : 'g' } ) , {
48- resubscribeOnError : false ,
48+ useEffectsErrorHandler : false ,
4949 } ) ;
5050 }
5151
5252 const mock = new Fixture ( ) ;
5353
5454 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 } ,
6262 } ) ;
6363 } ) ;
6464
0 commit comments