add non-redundant titles to page buttons

This commit is contained in:
Jay Staudt
2019-04-02 14:09:53 -04:00
parent 955ee17939
commit ba7512969e
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class PageButton extends Component {
}, className);
return (
<li className={ classes } title={ title }>
<li className={ classes } title={`page-${title}`}>
<a href="#" onClick={ this.handleClick } className="page-link">{ page }</a>
</li>
);

View File

@@ -105,7 +105,7 @@ describe('PageButton', () => {
const title = 'aTitle';
beforeEach(() => {
wrapper = shallow(
<PageButton { ...props } active disabled={ false } title={ title } />
<PageButton {...props} active disabled={false} title={`page-${ title }`} />
);
});