File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
pages/onboarding-flow/pin-extension Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 99} from '../../../helpers/constants/routes' ;
1010import { isGatorPermissionsRevocationFeatureEnabled } from '../../../../shared/modules/environment' ;
1111import { getBrowserName } from '../../../../shared/modules/browser-runtime.utils' ;
12- import { useSidePanelEnabled } from '../../../hooks/useSidePanelEnabled' ;
1312import {
1413 ENVIRONMENT_TYPE_POPUP ,
1514 PLATFORM_FIREFOX ,
@@ -58,10 +57,6 @@ jest.mock('../../../store/actions', () => ({
5857
5958jest . mock ( '../../../../shared/modules/environment' ) ;
6059
61- jest . mock ( '../../../hooks/useSidePanelEnabled' , ( ) => ( {
62- useSidePanelEnabled : jest . fn ( ( ) => false ) ,
63- } ) ) ;
64-
6560jest . mock ( '../../../../app/scripts/lib/util' , ( ) => ( {
6661 ...jest . requireActual ( '../../../../app/scripts/lib/util' ) ,
6762 getEnvironmentType : jest . fn ( ) ,
@@ -127,7 +122,6 @@ describe('Global Menu', () => {
127122 ) ;
128123 jest . mocked ( getBrowserName ) . mockReturnValue ( PLATFORM_FIREFOX ) ;
129124 jest . mocked ( getEnvironmentType ) . mockReturnValue ( ENVIRONMENT_TYPE_POPUP ) ;
130- jest . mocked ( useSidePanelEnabled ) . mockReturnValue ( true ) ;
131125
132126 // @ts -expect-error mocking platform
133127 global . platform = {
Original file line number Diff line number Diff line change @@ -39,11 +39,6 @@ jest.mock('react-router-dom-v5-compat', () => {
3939 } ;
4040} ) ;
4141
42- // Mock the useSidePanelEnabled hook to control sidepanel feature flag
43- jest . mock ( '../../../hooks/useSidePanelEnabled' , ( ) => ( {
44- useSidePanelEnabled : jest . fn ( ( ) => false ) ,
45- } ) ) ;
46-
4742describe ( 'Creation Successful Onboarding View' , ( ) => {
4843 afterEach ( ( ) => {
4944 jest . clearAllMocks ( ) ;
You can’t perform that action at this time.
0 commit comments