@@ -50,7 +50,7 @@ describe('Attachment', () => {
5050 const { getByTestId } = render ( getAttachmentComponent ( { attachment } ) ) ;
5151
5252 await waitFor ( ( ) => {
53- expect ( getByTestId ( 'card -attachment' ) ) . toBeTruthy ( ) ;
53+ expect ( getByTestId ( 'giphy -attachment' ) ) . toBeTruthy ( ) ;
5454 } ) ;
5555 } ) ;
5656
@@ -59,7 +59,7 @@ describe('Attachment', () => {
5959 const { getByTestId } = render ( getAttachmentComponent ( { attachment } ) ) ;
6060
6161 await waitFor ( ( ) => {
62- expect ( getByTestId ( 'card -attachment' ) ) . toBeTruthy ( ) ;
62+ expect ( getByTestId ( 'giphy -attachment' ) ) . toBeTruthy ( ) ;
6363 } ) ;
6464 } ) ;
6565
@@ -80,7 +80,7 @@ describe('Attachment', () => {
8080 const { getByTestId } = render ( getAttachmentComponent ( { attachment } ) ) ;
8181
8282 await waitFor ( ( ) => {
83- expect ( getByTestId ( 'image-attachment-single ' ) ) . toBeTruthy ( ) ;
83+ expect ( getByTestId ( 'image-multiple ' ) ) . toBeTruthy ( ) ;
8484 } ) ;
8585 } ) ;
8686
@@ -97,12 +97,12 @@ describe('Attachment', () => {
9797 } ) ;
9898
9999 it ( 'should call actionHandler on click' , async ( ) => {
100- const actionHandler = jest . fn ( ) ;
100+ const handleAction = jest . fn ( ) ;
101101 const action = generateAttachmentAction ( ) ;
102102 const { getByTestId } = render (
103103 getActionComponent ( {
104- actionHandler,
105104 actions : [ action ] ,
105+ handleAction,
106106 } ) ,
107107 ) ;
108108
@@ -116,7 +116,7 @@ describe('Attachment', () => {
116116 fireEvent . press ( getByTestId ( `attachment-actions-button-${ action . name } ` ) ) ;
117117
118118 await waitFor ( ( ) => {
119- expect ( actionHandler ) . toHaveBeenCalledTimes ( 2 ) ;
119+ expect ( handleAction ) . toHaveBeenCalledTimes ( 2 ) ;
120120 } ) ;
121121 } ) ;
122122
0 commit comments