From 30cef25691a37337217870a1698da50201977c13 Mon Sep 17 00:00:00 2001 From: Kathy Luo Date: Fri, 6 Oct 2023 14:52:08 +0200 Subject: [PATCH] fix: tests --- src/home/NotificationBox.test.tsx | 1 - src/home/NotificationCenter.test.tsx | 2 -- src/navigator/DrawerNavigator.test.tsx | 23 ----------------------- 3 files changed, 26 deletions(-) diff --git a/src/home/NotificationBox.test.tsx b/src/home/NotificationBox.test.tsx index 06af524bd5d..98bb2f7d21c 100644 --- a/src/home/NotificationBox.test.tsx +++ b/src/home/NotificationBox.test.tsx @@ -164,7 +164,6 @@ describe('NotificationBox', () => { it('renders reverify notification if decentrally verified and not CPV', () => { const store = createMockStore({ app: { - requireCPV: true, numberVerified: true, phoneNumberVerified: false, }, diff --git a/src/home/NotificationCenter.test.tsx b/src/home/NotificationCenter.test.tsx index f08da8b5301..1a1b881a02a 100644 --- a/src/home/NotificationCenter.test.tsx +++ b/src/home/NotificationCenter.test.tsx @@ -279,7 +279,6 @@ describe('NotificationCenter', () => { it('renders reverify notification if decentrally verified and not CPV', () => { const store = createMockStore({ app: { - requireCPV: true, numberVerified: true, phoneNumberVerified: false, }, @@ -302,7 +301,6 @@ describe('NotificationCenter', () => { const store = createMockStore({ ...storeDataNotificationsDisabled, app: { - requireCPV: true, numberVerified: true, phoneNumberVerified: false, }, diff --git a/src/navigator/DrawerNavigator.test.tsx b/src/navigator/DrawerNavigator.test.tsx index d75717002b6..154f111ca9f 100644 --- a/src/navigator/DrawerNavigator.test.tsx +++ b/src/navigator/DrawerNavigator.test.tsx @@ -138,7 +138,6 @@ describe('DrawerNavigator', () => { it('shows the phone number when the user is verified', () => { const store = createMockStore({ app: { - requireCPV: true, numberVerified: false, phoneNumberVerified: true, }, @@ -155,30 +154,9 @@ describe('DrawerNavigator', () => { expect(getByText('+1 302-306-1234')).toBeTruthy() }) - it("shows the phone number when the user is verified decentrally and we don't require CPV", () => { - const store = createMockStore({ - app: { - requireCPV: false, - numberVerified: true, - phoneNumberVerified: false, - }, - account: { - e164PhoneNumber: '+13023061234', - }, - }) - const { getByText } = render( - - - - ) - - expect(getByText('+1 302-306-1234')).toBeTruthy() - }) - it('hides the phone number when the user is verified decentrally and we require CPV', () => { const store = createMockStore({ app: { - requireCPV: true, numberVerified: true, phoneNumberVerified: false, }, @@ -198,7 +176,6 @@ describe('DrawerNavigator', () => { it('shows no phone number when the user is not verified', () => { const store = createMockStore({ app: { - requireCPV: true, numberVerified: false, phoneNumberVerified: false, },