Fix icon mock

This commit is contained in:
Bill Thornton 2021-10-08 00:11:42 -04:00
parent cb286a667a
commit 8fb8731c0d

View File

@ -9,9 +9,9 @@ import React from 'react';
import { openBrowser } from '../../utils/WebBrowser';
import BrowserListItem from '../BrowserListItem';
jest.mock('react-native-elements/src/icons/Icon', () => {
jest.mock('react-native-elements/dist/icons/Icon', () => {
const mockComponent = require('react-native/jest/mockComponent');
return mockComponent('react-native-elements/src/icons/Icon');
return mockComponent('react-native-elements/dist/icons/Icon');
});
jest.mock('../../utils/WebBrowser');