@@ -37,7 +37,7 @@ final class FormHookTests: QuickSpec {
3737 shouldUnregister: true ,
3838 shouldFocusError: true ,
3939 delayErrorInNanoseconds: 0 ,
40- onFocusedField : { _ in }
40+ onFocusField : { _ in }
4141 )
4242 formControl = . init( options: options, formState: . init(
4343 get: { formState } ,
@@ -129,7 +129,7 @@ final class FormHookTests: QuickSpec {
129129 shouldUnregister: false ,
130130 shouldFocusError: true ,
131131 delayErrorInNanoseconds: 0 ,
132- onFocusedField : { _ in }
132+ onFocusField : { _ in }
133133 )
134134 formControl = . init( options: options, formState: . init(
135135 get: { formState } ,
@@ -170,7 +170,7 @@ final class FormHookTests: QuickSpec {
170170 shouldUnregister: true ,
171171 shouldFocusError: true ,
172172 delayErrorInNanoseconds: 0 ,
173- onFocusedField : { _ in }
173+ onFocusField : { _ in }
174174 )
175175 formControl = . init( options: options, formState: . init(
176176 get: { formState } ,
@@ -348,7 +348,7 @@ final class FormHookTests: QuickSpec {
348348 shouldUnregister: true ,
349349 shouldFocusError: true ,
350350 delayErrorInNanoseconds: 0 ,
351- onFocusedField : { _ in }
351+ onFocusField : { _ in }
352352 )
353353 formControl = . init( options: options, formState: . init(
354354 get: { formState } ,
@@ -406,7 +406,7 @@ final class FormHookTests: QuickSpec {
406406 shouldUnregister: true ,
407407 shouldFocusError: true ,
408408 delayErrorInNanoseconds: 0 ,
409- onFocusedField : { _ in }
409+ onFocusField : { _ in }
410410 )
411411 formControl = . init( options: options, formState: . init(
412412 get: { formState } ,
@@ -544,7 +544,7 @@ final class FormHookTests: QuickSpec {
544544 shouldUnregister: true ,
545545 shouldFocusError: true ,
546546 delayErrorInNanoseconds: 0 ,
547- onFocusedField : { _ in }
547+ onFocusField : { _ in }
548548 )
549549 formControl = . init( options: options, formState: . init(
550550 get: { formState } ,
@@ -853,7 +853,7 @@ final class FormHookTests: QuickSpec {
853853 shouldUnregister: true ,
854854 shouldFocusError: true ,
855855 delayErrorInNanoseconds: 0 ,
856- onFocusedField : { _ in }
856+ onFocusField : { _ in }
857857 )
858858 formControl = . init( options: options, formState: . init(
859859 get: { formState } ,
@@ -917,7 +917,7 @@ final class FormHookTests: QuickSpec {
917917 shouldUnregister: true ,
918918 shouldFocusError: true ,
919919 delayErrorInNanoseconds: 0 ,
920- onFocusedField : { _ in }
920+ onFocusField : { _ in }
921921 )
922922 formControl = . init( options: options, formState: . init(
923923 get: { formState } ,
@@ -1022,7 +1022,7 @@ final class FormHookTests: QuickSpec {
10221022 shouldUnregister: true ,
10231023 shouldFocusError: true ,
10241024 delayErrorInNanoseconds: 0 ,
1025- onFocusedField : { _ in }
1025+ onFocusField : { _ in }
10261026 )
10271027 formControl = . init( options: options, formState: . init(
10281028 get: { formState } ,
@@ -1513,7 +1513,7 @@ final class FormHookTests: QuickSpec {
15131513 shouldUnregister: true ,
15141514 shouldFocusError: true ,
15151515 delayErrorInNanoseconds: 0 ,
1516- onFocusedField : { _ in }
1516+ onFocusField : { _ in }
15171517 )
15181518 formControl = . init( options: options, formState: . init(
15191519 get: { formState } ,
@@ -1559,6 +1559,7 @@ final class FormHookTests: QuickSpec {
15591559 let result = await formControl. trigger ( name: . a)
15601560 expect ( result) == false
15611561
1562+ try await Task . sleep ( nanoseconds: 110_000_000 )
15621563 let fieldState = await formControl. getFieldState ( name: . a)
15631564 expect ( fieldState. isInvalid) == true
15641565 expect ( fieldState. error) == [ " Failed to validate a " ]
@@ -1747,7 +1748,7 @@ final class FormHookTests: QuickSpec {
17471748 shouldUnregister: true ,
17481749 shouldFocusError: true ,
17491750 delayErrorInNanoseconds: 0 ,
1750- onFocusedField : { _ in }
1751+ onFocusField : { _ in }
17511752 )
17521753 formControl = . init( options: options, formState: . init(
17531754 get: { formState } ,
@@ -1879,7 +1880,7 @@ final class FormHookTests: QuickSpec {
18791880 shouldUnregister: false ,
18801881 shouldFocusError: true ,
18811882 delayErrorInNanoseconds: 0 ,
1882- onFocusedField : { _ in }
1883+ onFocusField : { _ in }
18831884 )
18841885 formControl = . init( options: options, formState: . init(
18851886 get: { formState } ,
0 commit comments