@@ -5,7 +5,6 @@ import { useNotificationsToggle } from '../../../../util/notifications/hooks/use
55import { useMetrics } from '../../../hooks/useMetrics' ;
66import { MetricsEventBuilder } from '../../../../core/Analytics/MetricsEventBuilder' ;
77import { renderHookWithProvider } from '../../../../util/test/renderWithProvider' ;
8- import { EVENT_NAME } from '../../../../core/Analytics' ;
98
109// Mock dependencies
1110jest . mock ( '@react-navigation/native' ) ;
@@ -91,17 +90,6 @@ describe('useMainNotificationToggle', () => {
9190 result . current . onToggle ( ) ;
9291
9392 expect ( mocks . switchNotifications ) . toHaveBeenCalledWith ( false ) ;
94- expect ( mocks . trackEvent ) . toHaveBeenCalledWith (
95- expect . objectContaining ( {
96- name : EVENT_NAME . NOTIFICATIONS_SETTINGS_UPDATED ,
97- properties : expect . objectContaining ( {
98- settings_type : 'notifications' ,
99- old_value : true ,
100- new_value : false ,
101- was_profile_syncing_on : true ,
102- } ) ,
103- } ) ,
104- ) ;
10593 } ) ;
10694
10795 it ( 'toggles from false to true' , ( ) => {
@@ -117,17 +105,6 @@ describe('useMainNotificationToggle', () => {
117105 result . current . onToggle ( ) ;
118106
119107 expect ( mocks . switchNotifications ) . toHaveBeenCalledWith ( true ) ;
120- expect ( mocks . trackEvent ) . toHaveBeenCalledWith (
121- expect . objectContaining ( {
122- name : EVENT_NAME . NOTIFICATIONS_SETTINGS_UPDATED ,
123- properties : expect . objectContaining ( {
124- settings_type : 'notifications' ,
125- old_value : false ,
126- new_value : true ,
127- was_profile_syncing_on : true ,
128- } ) ,
129- } ) ,
130- ) ;
131108 } ) ;
132109
133110 it ( 'navigate to basic functionality screen when basicFunctionalityEnabled is false' , ( ) => {
0 commit comments