File tree Expand file tree Collapse file tree 6 files changed +5
-4
lines changed
__tests__/unit/controllers/hooks/use-timeout Expand file tree Collapse file tree 6 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- import { shallow } from 'enzyme' ;
2
1
import React from 'react' ;
3
- import { useTimeout } from '../../../../../common/utils' ;
2
+ import { shallow } from 'enzyme' ;
3
+ import { useTimeout } from '../../../../../controllers/hooks' ;
4
4
5
5
const setTimeoutSpy = jest . spyOn ( global , 'setTimeout' ) ;
6
6
const clearTimeoutSpy = jest . spyOn ( global , 'clearTimeout' ) ;
Original file line number Diff line number Diff line change @@ -8,4 +8,3 @@ export { generateLocationFromPath } from './generate-location';
8
8
export { createLegacyHistory } from './history' ;
9
9
export { isServerEnvironment } from './is-server-environment' ;
10
10
export { findRouterContext , createRouterContext } from './router-context' ;
11
- export { useTimeout } from './use-timeout' ;
Original file line number Diff line number Diff line change 5
5
useQueryParam ,
6
6
usePathParam ,
7
7
} from './router-store' ;
8
+ export { useTimeout } from './use-timeout' ;
File renamed without changes.
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export {
11
11
useRouterActions ,
12
12
useQueryParam ,
13
13
usePathParam ,
14
+ useTimeout ,
14
15
} from './hooks' ;
15
16
export {
16
17
useResourceStoreContext ,
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ import {
11
11
} from 'react' ;
12
12
13
13
import { LinkProps , Route } from '../../common/types' ;
14
- import { useTimeout } from '../../common/utils' ;
15
14
import {
16
15
createRouterContext ,
17
16
generateLocationFromPath ,
18
17
} from '../../common/utils' ;
19
18
import { useRouterStoreStatic } from '../../controllers/router-store' ;
19
+ import { useTimeout } from '../../controllers/hooks/use-timeout' ;
20
20
21
21
import { getValidLinkType , handleNavigation } from './utils' ;
22
22
You can’t perform that action at this time.
0 commit comments