option to add title to <Button>, use for toot buttons (#197)
This commit is contained in:
parent
664c9aa708
commit
516eeeb43d
4 changed files with 50 additions and 17 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue