Skip to content

Commit

Permalink
Add test for Debugger component
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-username committed Mar 28, 2018
1 parent 96fdac3 commit b567ff2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Debuggers.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import Debuggers from './Debuggers';

describe('Debuggers component test', () => {
it('renders as expected', () => {
const wrapper = shallow(<Debuggers handlePasscodeReset={() => {}} />);
expect(wrapper).toMatchSnapshot();
});
});
27 changes: 27 additions & 0 deletions src/components/__snapshots__/Debuggers.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Debuggers component test renders as expected 1`] = `
<List>
<ListItem
chevronColor="#bdc6cf"
disabled={false}
hideChevron={true}
leftIconUnderlayColor="white"
onPress={[Function]}
rightIcon={
Object {
"name": "chevron-right",
}
}
rightTitleNumberOfLines={1}
roundAvatar={false}
subtitle="Press if unable to enable Passcode Protection"
subtitleNumberOfLines={1}
switchButton={false}
textInputEditable={true}
title="Reset Passcode Settings"
titleNumberOfLines={1}
underlayColor="white"
/>
</List>
`;

0 comments on commit b567ff2

Please sign in to comment.