Skip to content

Commit e60ecd6

Browse files
committed
Lint fix
1 parent 4b0c0bd commit e60ecd6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/navigation/isActiveRouteTests.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ import navigationRef from '@libs/Navigation/navigationRef';
55
import type * as ReactNavigationNative from '@react-navigation/native';
66

77
jest.mock('@react-navigation/native', () => {
8-
const actual = jest.requireActual('@react-navigation/native') as ReactNavigationNative;
8+
const actual = jest.requireActual<ReactNavigationNative>('@react-navigation/native');
99
return {
1010
...actual,
11-
getPathFromState: jest.fn<ReturnType<ReactNavigationNative['getPathFromState']>, Parameters<ReactNavigationNative['getPathFromState']>>(
12-
() => '/settings/profile?backTo=settings',
13-
),
11+
getPathFromState: jest.fn<ReturnType<typeof actual.getPathFromState>, Parameters<typeof actual.getPathFromState>>(() => '/settings/profile?backTo=settings'),
1412
};
1513
});
1614

0 commit comments

Comments
 (0)