From f2a14b953af4b9cd87dea690f60dccf16a3994a6 Mon Sep 17 00:00:00 2001 From: Jean Regisser Date: Wed, 4 Dec 2019 14:18:46 +0100 Subject: [PATCH] Fix test --- packages/mobile/src/import/ImportWallet.test.tsx | 4 ++++ .../src/import/__snapshots__/ImportWallet.test.tsx.snap | 3 +++ 2 files changed, 7 insertions(+) diff --git a/packages/mobile/src/import/ImportWallet.test.tsx b/packages/mobile/src/import/ImportWallet.test.tsx index 4f59e84b5b3..76074bba5fd 100644 --- a/packages/mobile/src/import/ImportWallet.test.tsx +++ b/packages/mobile/src/import/ImportWallet.test.tsx @@ -11,6 +11,10 @@ jest.mock('src/geth/GethAwareButton', () => { return mockButton }) +jest.mock('react-navigation', () => ({ + NavigationEvents: 'NavigationEvents', +})) + describe('ImportWallet', () => { it('renders correctly and is disabled with no text', () => { const wrapper = render( diff --git a/packages/mobile/src/import/__snapshots__/ImportWallet.test.tsx.snap b/packages/mobile/src/import/__snapshots__/ImportWallet.test.tsx.snap index 295d5aa61ac..131c5e10887 100644 --- a/packages/mobile/src/import/__snapshots__/ImportWallet.test.tsx.snap +++ b/packages/mobile/src/import/__snapshots__/ImportWallet.test.tsx.snap @@ -10,6 +10,9 @@ exports[`ImportWallet renders correctly and is disabled with no text 1`] = ` } } > +