1- // Copyright 2020 The MathWorks, Inc.
1+ // Copyright 2020-2021 The MathWorks, Inc.
22
33import configureMockStore from 'redux-mock-store' ;
44import thunk from 'redux-thunk' ;
@@ -14,17 +14,17 @@ const mockStore = configureMockStore(middlewares);
1414describe . each ( [
1515 [ actionCreators . setTutorialHidden , [ true ] , { type :actions . SET_TUTORIAL_HIDDEN , hidden :true } ] ,
1616 [ actionCreators . setTutorialHidden , [ false ] , { type :actions . SET_TUTORIAL_HIDDEN , hidden :false } ] ,
17- [ actionCreators . setOverlayVisibility , [ true ] , { type :actions . SET_OVERLAY_VISIBILITY , visibility :true } ] ,
17+ [ actionCreators . setOverlayVisibility , [ true ] , { type :actions . SET_OVERLAY_VISIBILITY , visibility :true } ] ,
1818 [ actionCreators . setOverlayVisibility , [ false ] , { type :actions . SET_OVERLAY_VISIBILITY , visibility :false } ] ,
1919 [ actionCreators . setTriggerPosition , [ 12 , 12 ] , { type :actions . SET_TRIGGER_POSITION , x :12 , y :12 } ] ,
2020 [ actionCreators . setTriggerPosition , [ 52 , 112 ] , { type :actions . SET_TRIGGER_POSITION , x :52 , y :112 } ] ,
2121 ] ) ( 'Test Set actionCreators' , ( method , input , expectedAction ) => {
2222 test ( `check if an action of type ${ expectedAction . type } is returned when method actionCreator.${ method . name } () is called` , ( ) => {
23- expect ( method ( ...input ) ) . toEqual ( expectedAction ) ;
23+ expect ( method ( ...input ) ) . toEqual ( expectedAction ) ;
2424 } ) ;
25- } ) ;
25+ } ) ;
26+
2627
27-
2828 describe . each ( [
2929 [ actionCreators . requestServerStatus , { type :actions . REQUEST_SERVER_STATUS , fetchAbortController :new AbortController ( ) } ] ,
3030 [ actionCreators . requestSetLicensing , { type :actions . REQUEST_SET_LICENSING , fetchAbortController :new AbortController ( ) } ] ,
@@ -40,24 +40,24 @@ describe.each([
4040
4141 test ( `check if an action of type ${ expectedAction . type } is returned with an AbortController when method actionCreator.${ method . name } () is called` , ( ) => {
4242 expect ( method ( abortController ) ) . toEqual ( expectedAction ) ;
43-
43+
4444 } ) ;
45- } ) ;
45+ } ) ;
46+
4647
47-
4848 describe . each ( [
4949 [ actionCreators . receiveSetLicensing , { type : 'MHLM' } , { type :actions . RECEIVE_SET_LICENSING , status :{ type :'MHLM' } } ] ,
5050 [ actionCreators . receiveStopMatlab , { matlabStatus :'down' } , { type :actions . RECEIVE_STOP_MATLAB , status :{ matlabStatus :'down' } } ] ,
5151 [ actionCreators . receiveStartMatlab , { matlabStatus :'up' } , { type :actions . RECEIVE_START_MATLAB , status :{ matlabStatus :'up' } } ] ,
52- [ actionCreators . receiveError , { message :'ERROR: License Manager Error -9' , logs : null } , { type :actions . RECEIVE_ERROR , error : { message :'ERROR: License Manager Error -9' , logs : null } } ] ,
52+ [ actionCreators . receiveError , { message :'ERROR: License Manager Error -9' , logs : null } , { type :actions . RECEIVE_ERROR , error : { message :'ERROR: License Manager Error -9' , logs : null } } ] ,
5353 [ actionCreators . receiveTerminateIntegration , { licensing :{ } } , { type :actions . RECEIVE_TERMINATE_INTEGRATION , status :{ licensing :{ } } , loadUrl :'../' } ] ,
5454 ] ) ( 'Test Receive actionCreators' , ( method , input , expectedAction ) => {
5555
5656 test ( `check if an action of type ${ expectedAction . type } is returned when method actionCreator.${ method . name } () is called` , ( ) => {
5757 expect ( method ( input ) ) . toEqual ( expectedAction ) ;
58-
58+
5959 } ) ;
60- } ) ;
60+ } ) ;
6161
6262
6363
0 commit comments