@@ -8,8 +8,8 @@ describe('getActionTypes', () => {
88 const types = getActionTypes ( action ) ;
99 expect ( types ) . to . be . array ;
1010 expect ( types [ 0 ] ) . to . equal ( action . type ) ;
11- expect ( types [ 1 ] ) . to . equal ( `${ action . type } _ ${ SUCCESS_SUFFIX } ` ) ;
12- expect ( types [ 2 ] ) . to . equal ( `${ action . type } _ ${ ERROR_SUFFIX } ` ) ;
11+ expect ( types [ 1 ] ) . to . equal ( `${ action . type } ${ SUCCESS_SUFFIX } ` ) ;
12+ expect ( types [ 2 ] ) . to . equal ( `${ action . type } ${ ERROR_SUFFIX } ` ) ;
1313 } ) ;
1414
1515 it ( 'should return custom types with `types` key' , ( ) => {
@@ -35,27 +35,27 @@ describe('getActionTypes', () => {
3535
3636 it ( 'should use custom success sufix if defined' , ( ) => {
3737 const action = { type :'TYPE' } ;
38- const types = getActionTypes ( action , { successSuffix :'AWESOME ' } ) ;
38+ const types = getActionTypes ( action , { successSuffix :'_AWESOME ' } ) ;
3939 expect ( types ) . to . be . array ;
4040 expect ( types [ 0 ] ) . to . equal ( action . type ) ;
4141 expect ( types [ 1 ] ) . to . equal ( `${ action . type } _AWESOME` ) ;
42- expect ( types [ 2 ] ) . to . equal ( `${ action . type } _ ${ ERROR_SUFFIX } ` ) ;
42+ expect ( types [ 2 ] ) . to . equal ( `${ action . type } ${ ERROR_SUFFIX } ` ) ;
4343 } ) ;
4444
4545 it ( 'should use custom error sufix if defined' , ( ) => {
4646 const action = { type :'TYPE' } ;
47- const types = getActionTypes ( action , { errorSuffix :'OH_NO ' } ) ;
47+ const types = getActionTypes ( action , { errorSuffix :'_OH_NO ' } ) ;
4848 expect ( types ) . to . be . array ;
4949 expect ( types [ 0 ] ) . to . equal ( action . type ) ;
50- expect ( types [ 1 ] ) . to . equal ( `${ action . type } _ ${ SUCCESS_SUFFIX } ` ) ;
50+ expect ( types [ 1 ] ) . to . equal ( `${ action . type } ${ SUCCESS_SUFFIX } ` ) ;
5151 expect ( types [ 2 ] ) . to . equal ( `${ action . type } _OH_NO` ) ;
5252 } ) ;
5353
5454 it ( 'should use custom success and error sufix if defined' , ( ) => {
5555 const action = { type :'TYPE' } ;
5656 const types = getActionTypes ( action , {
57- successSuffix :'AWESOME ' ,
58- errorSuffix :'OH_NO '
57+ successSuffix :'_AWESOME ' ,
58+ errorSuffix :'_OH_NO '
5959 } ) ;
6060 expect ( types ) . to . be . array ;
6161 expect ( types [ 0 ] ) . to . equal ( action . type ) ;
@@ -64,7 +64,3 @@ describe('getActionTypes', () => {
6464 } ) ;
6565
6666} ) ;
67-
68-
69-
70-
0 commit comments