diff --git a/lib/components/__tests__/__snapshots__/tab_view-tests.js.snap b/lib/components/__tests__/__snapshots__/tab_view-tests.js.snap index 18d444749f..f39ac116e8 100644 --- a/lib/components/__tests__/__snapshots__/tab_view-tests.js.snap +++ b/lib/components/__tests__/__snapshots__/tab_view-tests.js.snap @@ -1,24 +1,20 @@ exports[`test looks like expected 1`] = ` - diff --git a/lib/components/__tests__/tab_view-tests.js b/lib/components/__tests__/tab_view-tests.js index 21f43b3c70..87146e4672 100644 --- a/lib/components/__tests__/tab_view-tests.js +++ b/lib/components/__tests__/tab_view-tests.js @@ -1,6 +1,8 @@ import 'react-native' import React from 'react' import renderer from 'react-test-renderer' + +jest.mock('../../components/switch_view', () => 'SwitchView') import TabView from '../tab_view' it('looks like expected', () => { diff --git a/lib/components/gene/__tests__/__snapshots__/about-test.js.snap b/lib/components/gene/__tests__/__snapshots__/about-test.js.snap index 78594a9af3..133d095a09 100644 --- a/lib/components/gene/__tests__/__snapshots__/about-test.js.snap +++ b/lib/components/gene/__tests__/__snapshots__/about-test.js.snap @@ -143,15 +143,15 @@ exports[`test shows trending artists correctly 1`] = ` Object { "margin": 5, "paddingBottom": 20, - "width": 157, + "width": 1, } }> - diff --git a/lib/components/gene/__tests__/about-test.js b/lib/components/gene/__tests__/about-test.js index 0396699f7f..57aa9bd25f 100644 --- a/lib/components/gene/__tests__/about-test.js +++ b/lib/components/gene/__tests__/about-test.js @@ -7,6 +7,7 @@ import renderer from 'react-test-renderer' jest.mock('../../opaque_image_view.js', () => 'ImageView') + it('renders correctly', () => { const gene = { description: 'This is some example text', @@ -20,7 +21,7 @@ it('shows trending artists correctly', () => { const gene = { description: 'This is some example text', trending_artists : [{ - _id: '1', + __id: 'artist-uuid', href: '/thing/artist/url', name: 'Artist Name', counts: {