-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5d9cf3
commit 3df402e
Showing
4 changed files
with
148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import EntryList from './EntryList'; | ||
|
||
describe('EntryList component', () => { | ||
it('should render as expected', () => { | ||
const sampleEntries = [ | ||
['md391', { name: 'Bank 1' }], | ||
['krni8', { name: 'Bank 2' }], | ||
['jr278', { name: 'Bank 3' }], | ||
]; | ||
const wrapper = shallow( | ||
<EntryList entries={sampleEntries} onPress={() => {}} /> | ||
); | ||
expect(wrapper).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EntryList component should render as expected 1`] = ` | ||
<ScrollView> | ||
<List> | ||
<ListItem | ||
chevronColor="#bdc6cf" | ||
disabled={false} | ||
hideChevron={false} | ||
key="md391" | ||
leftIconUnderlayColor="white" | ||
onPress={[Function]} | ||
rightIcon={ | ||
Object { | ||
"name": "chevron-right", | ||
} | ||
} | ||
rightTitleNumberOfLines={1} | ||
roundAvatar={false} | ||
subtitleNumberOfLines={1} | ||
switchButton={false} | ||
textInputEditable={true} | ||
title="Bank 1" | ||
titleNumberOfLines={1} | ||
underlayColor="white" | ||
/> | ||
<ListItem | ||
chevronColor="#bdc6cf" | ||
disabled={false} | ||
hideChevron={false} | ||
key="krni8" | ||
leftIconUnderlayColor="white" | ||
onPress={[Function]} | ||
rightIcon={ | ||
Object { | ||
"name": "chevron-right", | ||
} | ||
} | ||
rightTitleNumberOfLines={1} | ||
roundAvatar={false} | ||
subtitleNumberOfLines={1} | ||
switchButton={false} | ||
textInputEditable={true} | ||
title="Bank 2" | ||
titleNumberOfLines={1} | ||
underlayColor="white" | ||
/> | ||
<ListItem | ||
chevronColor="#bdc6cf" | ||
disabled={false} | ||
hideChevron={false} | ||
key="jr278" | ||
leftIconUnderlayColor="white" | ||
onPress={[Function]} | ||
rightIcon={ | ||
Object { | ||
"name": "chevron-right", | ||
} | ||
} | ||
rightTitleNumberOfLines={1} | ||
roundAvatar={false} | ||
subtitleNumberOfLines={1} | ||
switchButton={false} | ||
textInputEditable={true} | ||
title="Bank 3" | ||
titleNumberOfLines={1} | ||
underlayColor="white" | ||
/> | ||
</List> | ||
</ScrollView> | ||
`; |