@@ -3,7 +3,7 @@ import { call } from 'redux-saga/effects';
33import { throwError } from 'redux-saga-test-plan/providers' ;
44
55import {
6- actionTypes ,
6+ actionCreators ,
77 onCancellation ,
88 onFailure ,
99 onSuccessful ,
@@ -18,7 +18,7 @@ describe('cancelReservation Saga', () => {
1818 let scenario ;
1919
2020 const action = {
21- type : actionTypes . DELETE_RESERVATION ,
21+ type : actionCreators . DELETE_RESERVATION ,
2222 reservationId : 999 ,
2323 } ;
2424 const expectedRequestParams = { reservationId : action . reservationId } ;
@@ -56,13 +56,13 @@ describe('cancelReservation Saga', () => {
5656 [ call ( confirmation , action . reservationId ) , true ] ,
5757 ] )
5858 . put ( {
59- type : onSuccessful ( actionTypes . DELETE_RESERVATION ) ,
59+ type : onSuccessful ( actionCreators . DELETE_RESERVATION ) ,
6060 response : {
6161 data : expectedApiResponse ,
6262 } ,
6363 } )
6464 . put ( {
65- type : actionTypes . SET_ALERT ,
65+ type : actionCreators . SET_ALERT ,
6666 alertType : 'success' ,
6767 message : 'Reservation cancelled.' ,
6868 } )
@@ -73,7 +73,7 @@ describe('cancelReservation Saga', () => {
7373 return scenario
7474 . provide ( [ [ call ( confirmation , action . reservationId ) , false ] ] )
7575 . put ( {
76- type : onCancellation ( actionTypes . REJECT_CONFIRMATION_MODAL ) ,
76+ type : onCancellation ( actionCreators . REJECT_CONFIRMATION_MODAL ) ,
7777 } )
7878 . silentRun ( ) ;
7979 } ) ;
@@ -98,12 +98,12 @@ describe('cancelReservation Saga', () => {
9898 ] ,
9999 ] )
100100 . put ( {
101- type : onFailure ( actionTypes . DELETE_RESERVATION ) ,
101+ type : onFailure ( actionCreators . DELETE_RESERVATION ) ,
102102 alertType : 'danger' ,
103103 message : expectedErrMessage ,
104104 } )
105105 . put ( {
106- type : actionTypes . SET_ALERT ,
106+ type : actionCreators . SET_ALERT ,
107107 alertType : 'danger' ,
108108 message : expectedErrMessage ,
109109 } )
@@ -122,12 +122,12 @@ describe('cancelReservation Saga', () => {
122122 [ call ( confirmation , action . reservationId ) , true ] ,
123123 ] )
124124 . put ( {
125- type : onFailure ( actionTypes . DELETE_RESERVATION ) ,
125+ type : onFailure ( actionCreators . DELETE_RESERVATION ) ,
126126 alertType : 'danger' ,
127127 message : expectedErrMessage ,
128128 } )
129129 . put ( {
130- type : actionTypes . SET_ALERT ,
130+ type : actionCreators . SET_ALERT ,
131131 alertType : 'danger' ,
132132 message : expectedErrMessage ,
133133 } )
0 commit comments