@@ -2,7 +2,7 @@ import { ApprovalType } from '@metamask/controller-utils';
22import mockState from '../../../../test/data/mock-state.json' ;
33import { unapprovedPersonalSignMsg } from '../../../../test/data/confirmations/personal_sign' ;
44import { renderHookWithConfirmContextProvider } from '../../../../test/lib/confirmations/render-helpers' ;
5- import syncConfirmPath from './syncConfirmPath ' ;
5+ import useSyncConfirmPath from './useSyncConfirmPath ' ;
66
77const mockHistoryReplace = jest . fn ( ) ;
88
@@ -27,7 +27,7 @@ const STATE_MOCK = {
2727describe ( 'syncConfirmPath' , ( ) => {
2828 it ( 'should execute correctly' , ( ) => {
2929 const result = renderHookWithConfirmContextProvider (
30- ( ) => syncConfirmPath ( unapprovedPersonalSignMsg ) ,
30+ ( ) => useSyncConfirmPath ( unapprovedPersonalSignMsg ) ,
3131 STATE_MOCK ,
3232 ) ;
3333 expect ( result ) . toBeDefined ( ) ;
@@ -36,7 +36,7 @@ describe('syncConfirmPath', () => {
3636 it ( 'should replace history route' , ( ) => {
3737 mockHistoryReplace . mockClear ( ) ;
3838 renderHookWithConfirmContextProvider (
39- ( ) => syncConfirmPath ( unapprovedPersonalSignMsg ) ,
39+ ( ) => useSyncConfirmPath ( unapprovedPersonalSignMsg ) ,
4040 STATE_MOCK ,
4141 ) ;
4242 expect ( mockHistoryReplace ) . toHaveBeenCalled ( ) ;
0 commit comments