File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/components/MessageInput/__tests__ Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -822,7 +822,7 @@ describe(`EditMessageForm`, () => {
822822 } ) ;
823823
824824 describe ( 'Submitting' , ( ) => {
825- it ( 'should submit the message if content not change' , async ( ) => {
825+ it ( 'should not submit the message if content not change' , async ( ) => {
826826 const { customChannel, customClient } = await setup ( ) ;
827827 const { container, submit } = await renderComponent ( {
828828 customChannel,
@@ -831,13 +831,7 @@ describe(`EditMessageForm`, () => {
831831
832832 await act ( ( ) => submit ( ) ) ;
833833
834- expect ( editMock ) . toHaveBeenCalledWith (
835- customChannel . cid ,
836- expect . objectContaining ( {
837- text : mainListMessage . text ,
838- } ) ,
839- { } ,
840- ) ;
834+ expect ( editMock ) . not . toHaveBeenCalled ( ) ;
841835 await axeNoViolations ( container ) ;
842836 } ) ;
843837 it ( 'should submit the input value with text changed' , async ( ) => {
You can’t perform that action at this time.
0 commit comments