File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export interface UniDriver {
6
6
at ( index : number ) : Promise < UniDriver > ;
7
7
instance ( ) : Promise < any > ;
8
8
getInstanceProps ( ) : Promise < any > ;
9
- press ( ) : Promise < any > ;
9
+ press ( ) : void ;
10
10
typeText ( text : string ) : Promise < void > ;
11
11
scrollX ( deltaX : number ) : Promise < void > ;
12
12
scrollY ( deltaY : number ) : Promise < void > ;
Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ export class TestingLibraryDriver implements UniDriver {
76
76
return _ . get ( instance , 'props' ) ;
77
77
}
78
78
79
- press = async ( ) : Promise < void > => {
79
+ press = ( ) : void => {
80
80
if ( ! this . reactTestInstances ) {
81
81
throw new NoSelectorException ( ) ;
82
82
}
83
83
this . validateExplicitInstance ( ) ;
84
84
this . validateSingleInstance ( ) ;
85
- await act ( ( ) => fireEvent . press ( this . reactTestInstances [ 0 ] ) ) ;
85
+ fireEvent . press ( this . reactTestInstances [ 0 ] ) ;
86
86
} ;
87
87
88
88
typeText = async ( text : string ) : Promise < void > => {
You can’t perform that action at this time.
0 commit comments