@@ -13,7 +13,7 @@ import {
1313import { render } from '../..' ;
1414import '../extend-expect' ;
1515
16- test ( 'toBeDisabled/toBeEnabled supports basic case' , ( ) => {
16+ test ( 'toBeDisabled() /toBeEnabled() supports basic case' , ( ) => {
1717 const screen = render (
1818 < View >
1919 < View testID = "disabled-parent" aria-disabled >
@@ -87,7 +87,7 @@ test('toBeDisabled/toBeEnabled supports basic case', () => {
8787 ` ) ;
8888} ) ;
8989
90- test ( 'toBeDisabled/toBeEnabled supports Pressable with "disabled" prop' , ( ) => {
90+ test ( 'toBeDisabled() /toBeEnabled() supports Pressable with "disabled" prop' , ( ) => {
9191 const screen = render (
9292 < Pressable disabled testID = "subject" >
9393 < Text > Button</ Text >
@@ -161,7 +161,7 @@ test.each([
161161 [ 'TouchableWithoutFeedback' , TouchableWithoutFeedback ] ,
162162 [ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
163163] as const ) (
164- 'toBeDisabled/toBeEnabled supports %s with "disabled" prop' ,
164+ 'toBeDisabled() /toBeEnabled() supports %s with "disabled" prop' ,
165165 ( _ , Component ) => {
166166 const screen = render (
167167 // @ts -expect-error disabled prop is not available on all Touchables
@@ -194,7 +194,7 @@ test.each([
194194 [ 'TouchableWithoutFeedback' , TouchableWithoutFeedback ] ,
195195 [ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
196196] as const ) (
197- 'toBeDisabled/toBeEnabled supports %s with "aria-disabled" prop' ,
197+ 'toBeDisabled() /toBeEnabled() supports %s with "aria-disabled" prop' ,
198198 ( _ , Component ) => {
199199 const screen = render (
200200 // @ts -expect-error too generic for typescript
@@ -221,7 +221,7 @@ test.each([
221221 [ 'TouchableWithoutFeedback' , TouchableWithoutFeedback ] ,
222222 [ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
223223] as const ) (
224- 'toBeDisabled/toBeEnabled supports %s with "accessibilityState.disabled" prop' ,
224+ 'toBeDisabled() /toBeEnabled() supports %s with "accessibilityState.disabled" prop' ,
225225 ( _ , Component ) => {
226226 const screen = render (
227227 // @ts -expect-error disabled prop is not available on all Touchables
@@ -238,7 +238,7 @@ test.each([
238238 }
239239) ;
240240
241- test ( 'toBeDisabled/toBeEnabled supports "editable" prop on TextInput' , ( ) => {
241+ test ( 'toBeDisabled() /toBeEnabled() supports "editable" prop on TextInput' , ( ) => {
242242 const screen = render (
243243 < View >
244244 < TextInput testID = "enabled-by-default" />
@@ -256,7 +256,7 @@ test('toBeDisabled/toBeEnabled supports "editable" prop on TextInput', () => {
256256 expect ( screen . getByTestId ( 'disabled' ) ) . not . toBeEnabled ( ) ;
257257} ) ;
258258
259- test ( 'toBeDisabled/toBeEnabled supports "disabled" prop on Button' , ( ) => {
259+ test ( 'toBeDisabled() /toBeEnabled() supports "disabled" prop on Button' , ( ) => {
260260 const screen = render (
261261 < View >
262262 < Button testID = "enabled" title = "enabled" />
0 commit comments