Skip to content

Commit

Permalink
Update test to verify that breadcrumb text can be an element.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed May 10, 2018
1 parent 356cb4e commit 88b620b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ exports[`EuiBreadcrumbs is rendered 1`] = `
data-test-subj="breadcrumbsAnimals"
href="#"
>
Animals
<span>
Animals
</span>
</a>
<div
class="euiBreadcrumbSeparator"
Expand Down
2 changes: 1 addition & 1 deletion src/components/breadcrumbs/breadcrumbs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EuiBreadcrumbs } from './breadcrumbs';
describe('EuiBreadcrumbs', () => {
test('is rendered', () => {
const breadcrumbs = [{
text: 'Animals',
text: <span>Animals</span>,
href: '#',
onClick: (e) => { e.preventDefault(); console.log('You clicked Animals'); },
'data-test-subj': 'breadcrumbsAnimals',
Expand Down

0 comments on commit 88b620b

Please sign in to comment.