From a9e2ad6263eae864bb54e9f25f347087f5897057 Mon Sep 17 00:00:00 2001 From: Prithpal Sooriya Date: Tue, 14 Jan 2025 18:11:56 +0000 Subject: [PATCH] fix: fix type issues remove old code --- app/util/notifications/index.ts | 1 - app/util/notifications/methods/common.test.ts | 21 ------------------- 2 files changed, 22 deletions(-) diff --git a/app/util/notifications/index.ts b/app/util/notifications/index.ts index d1e6201e1e9..c53837dd4df 100644 --- a/app/util/notifications/index.ts +++ b/app/util/notifications/index.ts @@ -2,6 +2,5 @@ export * from './types'; export * from './constants'; export * from './androidChannels'; export * from './settings'; -export * from './hooks'; export * from './methods'; export * from './services'; diff --git a/app/util/notifications/methods/common.test.ts b/app/util/notifications/methods/common.test.ts index a60317e5ec1..40386eefbc6 100644 --- a/app/util/notifications/methods/common.test.ts +++ b/app/util/notifications/methods/common.test.ts @@ -1,12 +1,10 @@ import { formatMenuItemDate, - parseNotification, getLeadingZeroCount, formatAmount, getUsdAmount, } from './common'; import { strings } from '../../../../locales/i18n'; -import { FirebaseMessagingTypes } from '@react-native-firebase/messaging'; describe('formatMenuItemDate', () => { beforeAll(() => { @@ -199,22 +197,3 @@ describe('getUsdAmount', () => { expect(result).toBe('5M'); // Since 5000 Ether * $1000 = $5,000,000, formatted as '5M' }); }); - -describe('parseNotification', () => { - it('parses notification', () => { - const notification = { - data: { - data: { - type: 'eth_received', - data: { kind: 'eth_received' }, - }, - }, - } as unknown as FirebaseMessagingTypes.RemoteMessage; - - expect(parseNotification(notification)).toEqual({ - type: 'eth_received', - transaction: { kind: 'eth_received' }, - duration: 5000, - }); - }); -});