File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
app/components/UI/Predict/hooks Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Engine from '../../../../core/Engine';
44import Logger from '../../../../util/Logger' ;
55import { PredictTradeStatus } from '../constants/eventNames' ;
66import { ConfirmationLoader } from '../../../Views/confirmations/components/confirm/confirm-component' ;
7+ import { TEST_HEX_COLORS as mockTestHexColors } from '../testUtils/mockColors' ;
78
89const mockGoBack = jest . fn ( ) ;
910const mockNavigateToConfirmation = jest . fn ( ) ;
@@ -32,12 +33,18 @@ jest.mock('../../../../util/Logger', () => ({
3233 error : jest . fn ( ) ,
3334} ) ) ;
3435
35- jest . mock ( '../../../../util/theme' , ( ) => {
36- const { mockTheme } = jest . requireActual ( '../../../../util/theme' ) ;
37- return {
38- useAppThemeFromContext : ( ) => mockTheme ,
39- } ;
40- } ) ;
36+ jest . mock ( '../../../../util/theme' , ( ) => ( {
37+ useAppThemeFromContext : jest . fn ( ( ) => ( {
38+ colors : {
39+ error : {
40+ default : mockTestHexColors . ERROR_DARK ,
41+ } ,
42+ accent04 : {
43+ normal : mockTestHexColors . ACCENT_BLUE ,
44+ } ,
45+ } ,
46+ } ) ) ,
47+ } ) ) ;
4148
4249jest . mock ( '../../../../component-library/components/Toast' , ( ) => {
4350 const actualReact = jest . requireActual ( 'react' ) ;
You can’t perform that action at this time.
0 commit comments