Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Make master green, and remove all console errors
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Dec 3, 2016
1 parent 5a94f81 commit 4cd15b6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 28 deletions.
30 changes: 13 additions & 17 deletions lib/components/__tests__/__snapshots__/tab_view-tests.js.snap
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
exports[`test looks like expected 1`] = `
<View>
<View
<SwitchView
onSelectionChange={[Function]}
selectedIndex={1}
style={
Object {
"marginBottom": 30,
"marginLeft": 0,
"marginRight": 0,
"marginTop": 30,
}
}
titles={
Array [
Object {
"alignSelf": "flex-start",
"borderColor": "red",
"borderWidth": 1,
},
Array [
Object {
"height": 46,
},
Object {
"marginBottom": 30,
"marginLeft": 0,
"marginRight": 0,
"marginTop": 30,
},
],
"one",
"two",
]
} />
<View />
Expand Down
2 changes: 2 additions & 0 deletions lib/components/__tests__/tab_view-tests.js
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
13 changes: 3 additions & 10 deletions lib/components/gene/__tests__/__snapshots__/about-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ exports[`test shows trending artists correctly 1`] = `
Object {
"margin": 5,
"paddingBottom": 20,
"width": 157,
"width": 1,
}
}>
<ImageView
imageURL=""
style={
Object {
"height": 105,
"width": 157,
"height": 1,
"width": 1,
}
} />
<Text
Expand Down Expand Up @@ -184,13 +184,6 @@ exports[`test shows trending artists correctly 1`] = `
</Text>
</View>
</TouchableWithoutFeedback>
<View
style={
Object {
"height": 105,
"width": 157,
}
} />
</View>
</View>
</View>
Expand Down
3 changes: 2 additions & 1 deletion lib/components/gene/__tests__/about-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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: {
Expand Down

0 comments on commit 4cd15b6

Please sign in to comment.