@@ -13,7 +13,7 @@ import {
13
13
import { render } from '../..' ;
14
14
import '../extend-expect' ;
15
15
16
- test ( 'toBeDisabled/toBeEnabled supports basic case' , ( ) => {
16
+ test ( 'toBeDisabled() /toBeEnabled() supports basic case' , ( ) => {
17
17
const screen = render (
18
18
< View >
19
19
< View testID = "disabled-parent" aria-disabled >
@@ -87,7 +87,7 @@ test('toBeDisabled/toBeEnabled supports basic case', () => {
87
87
` ) ;
88
88
} ) ;
89
89
90
- test ( 'toBeDisabled/toBeEnabled supports Pressable with "disabled" prop' , ( ) => {
90
+ test ( 'toBeDisabled() /toBeEnabled() supports Pressable with "disabled" prop' , ( ) => {
91
91
const screen = render (
92
92
< Pressable disabled testID = "subject" >
93
93
< Text > Button</ Text >
@@ -161,7 +161,7 @@ test.each([
161
161
[ 'TouchableWithoutFeedback' , TouchableWithoutFeedback ] ,
162
162
[ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
163
163
] as const ) (
164
- 'toBeDisabled/toBeEnabled supports %s with "disabled" prop' ,
164
+ 'toBeDisabled() /toBeEnabled() supports %s with "disabled" prop' ,
165
165
( _ , Component ) => {
166
166
const screen = render (
167
167
// @ts -expect-error disabled prop is not available on all Touchables
@@ -194,7 +194,7 @@ test.each([
194
194
[ 'TouchableWithoutFeedback' , TouchableWithoutFeedback ] ,
195
195
[ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
196
196
] as const ) (
197
- 'toBeDisabled/toBeEnabled supports %s with "aria-disabled" prop' ,
197
+ 'toBeDisabled() /toBeEnabled() supports %s with "aria-disabled" prop' ,
198
198
( _ , Component ) => {
199
199
const screen = render (
200
200
// @ts -expect-error too generic for typescript
@@ -221,7 +221,7 @@ test.each([
221
221
[ 'TouchableWithoutFeedback' , TouchableWithoutFeedback ] ,
222
222
[ 'TouchableNativeFeedback' , TouchableNativeFeedback ] ,
223
223
] as const ) (
224
- 'toBeDisabled/toBeEnabled supports %s with "accessibilityState.disabled" prop' ,
224
+ 'toBeDisabled() /toBeEnabled() supports %s with "accessibilityState.disabled" prop' ,
225
225
( _ , Component ) => {
226
226
const screen = render (
227
227
// @ts -expect-error disabled prop is not available on all Touchables
@@ -238,7 +238,7 @@ test.each([
238
238
}
239
239
) ;
240
240
241
- test ( 'toBeDisabled/toBeEnabled supports "editable" prop on TextInput' , ( ) => {
241
+ test ( 'toBeDisabled() /toBeEnabled() supports "editable" prop on TextInput' , ( ) => {
242
242
const screen = render (
243
243
< View >
244
244
< TextInput testID = "enabled-by-default" />
@@ -256,7 +256,7 @@ test('toBeDisabled/toBeEnabled supports "editable" prop on TextInput', () => {
256
256
expect ( screen . getByTestId ( 'disabled' ) ) . not . toBeEnabled ( ) ;
257
257
} ) ;
258
258
259
- test ( 'toBeDisabled/toBeEnabled supports "disabled" prop on Button' , ( ) => {
259
+ test ( 'toBeDisabled() /toBeEnabled() supports "disabled" prop on Button' , ( ) => {
260
260
const screen = render (
261
261
< View >
262
262
< Button testID = "enabled" title = "enabled" />
0 commit comments