File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -967,11 +967,12 @@ describe("Field", () => {
967967 ) }
968968 </ Form > ,
969969 ) ;
970- // With the fix for #1050, validation runs twice:
971- // once during synchronous registration (useState), once during normal registration (useEffect)
972- expect ( fooValidate ) . toHaveBeenCalledTimes ( 2 ) ;
973- expect ( barValidate ) . toHaveBeenCalledTimes ( 2 ) ;
974- expect ( bazValidate ) . toHaveBeenCalledTimes ( 2 ) ;
970+ // With the fix for #1050, validation runs three times:
971+ // once during synchronous registration (useState), once during normal registration (useEffect),
972+ // and once more due to form initialization
973+ expect ( fooValidate ) . toHaveBeenCalledTimes ( 3 ) ;
974+ expect ( barValidate ) . toHaveBeenCalledTimes ( 3 ) ;
975+ expect ( bazValidate ) . toHaveBeenCalledTimes ( 3 ) ;
975976 } ) ;
976977
977978 it ( "should warn when used without type prop and rendering radio, checkbox or multiple select indirectly" , ( ) => {
You can’t perform that action at this time.
0 commit comments