0
0
Fork 0

option to add title to <Button>, use for toot buttons (#197)

This commit is contained in:
Ondřej Hruška 2017-10-24 19:08:07 +02:00 committed by GitHub
parent 664c9aa708
commit 516eeeb43d
4 changed files with 50 additions and 17 deletions

View file

@ -72,4 +72,11 @@ describe('<Button />', () => {
expect(tree).toMatchSnapshot();
});
it('renders title if props.title is given', () => {
const component = renderer.create(<Button title='foo' />);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
});