File tree 1 file changed +5
-7
lines changed
src/hooks/authGrants/useCheckAndUpdateGrants
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { GrantEnums } from 'lib/desmos/msgtypes' ;
2
- import { act , renderHook , waitFor } from '@testing-library/react-native' ;
2
+ import { act , renderHook } from '@testing-library/react-native' ;
3
3
import useCheckAndUpdateGrants from 'hooks/authGrants/useCheckAndUpdateGrants/index' ;
4
4
import ROUTES from 'navigation/routes' ;
5
5
import { checkGrants } from 'hooks/authGrants/useCheckAndUpdateGrants/utils' ;
@@ -39,12 +39,10 @@ describe('hooks: useCheckAndUpdateGrants', () => {
39
39
. then ( ) ;
40
40
} ) ;
41
41
42
- await waitFor ( ( ) => {
43
- expect ( mockNavigate ) . toHaveBeenCalledWith ( ROUTES . ACTION_AUTHORIZATION , {
44
- grants : [ GrantEnums . MsgCreateReport ] ,
45
- onApprove : expect . anything ( ) ,
46
- onCancel : expect . anything ( ) ,
47
- } ) ;
42
+ expect ( mockNavigate ) . toHaveBeenCalledWith ( ROUTES . ACTION_AUTHORIZATION , {
43
+ grants : [ GrantEnums . MsgCreateReport ] ,
44
+ onApprove : expect . anything ( ) ,
45
+ onCancel : expect . anything ( ) ,
48
46
} ) ;
49
47
} ) ;
50
48
You can’t perform that action at this time.
0 commit comments