Skip to content

Commit fbf39c0

Browse files
chore: fix lint issues from merge conflicts
1 parent 48fc651 commit fbf39c0

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

app/components/Views/Settings/NotificationsSettings/MainNotificationToggle.hooks.test.tsx

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { useNotificationsToggle } from '../../../../util/notifications/hooks/use
55
import { useMetrics } from '../../../hooks/useMetrics';
66
import { MetricsEventBuilder } from '../../../../core/Analytics/MetricsEventBuilder';
77
import { renderHookWithProvider } from '../../../../util/test/renderWithProvider';
8-
import { EVENT_NAME } from '../../../../core/Analytics';
98

109
// Mock dependencies
1110
jest.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

Comments
 (0)