We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60e4c5 commit e043138Copy full SHA for e043138
__tests__/tests/components/Button.js
@@ -13,6 +13,12 @@ describe('<Button />', () => {
13
expect(onPress.mock.calls.length).toEqual(1);
14
});
15
16
+ it('correctly renders without title props', () => {
17
+ const wrapper = render(<Button />);
18
+
19
+ expect(wrapper.find('text').text()).toEqual('missing title!');
20
+ });
21
22
it('correctly renders with only title', () => {
23
const wrapper = render(<Button title="test text" />);
24
0 commit comments