88 renderWithProvider ,
99 createSwapsMockStore ,
1010} from '../../../../test/jest' ;
11- import SmartTransactionsOptInModal from './smart-transactions-opt-in-modal' ;
1211import { setSmartTransactionsOptInStatus } from '../../../store/actions' ;
1312import { ADVANCED_ROUTE } from '../../../helpers/constants/routes' ;
13+ import SmartTransactionsOptInModal from './smart-transactions-opt-in-modal' ;
1414
1515const middleware = [ thunk ] ;
1616
@@ -22,7 +22,7 @@ describe('SmartTransactionsOptInModal', () => {
2222 const { getByText, container } = renderWithProvider (
2323 < SmartTransactionsOptInModal
2424 isOpen = { true }
25- hideWhatsNewPopup = { ( ) => { } }
25+ hideWhatsNewPopup = { jest . fn ( ) }
2626 /> ,
2727 store ,
2828 ) ;
@@ -43,7 +43,7 @@ describe('SmartTransactionsOptInModal', () => {
4343 const { getByText } = renderWithProvider (
4444 < SmartTransactionsOptInModal
4545 isOpen = { true }
46- hideWhatsNewPopup = { ( ) => { } }
46+ hideWhatsNewPopup = { jest . fn ( ) }
4747 /> ,
4848 store ,
4949 ) ;
@@ -63,7 +63,7 @@ describe('SmartTransactionsOptInModal', () => {
6363 const { getByText } = renderWithProvider (
6464 < SmartTransactionsOptInModal
6565 isOpen = { true }
66- hideWhatsNewPopup = { ( ) => { } }
66+ hideWhatsNewPopup = { jest . fn ( ) }
6767 /> ,
6868 store ,
6969 ) ;
0 commit comments