-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #575 from SwedbankPay/fix/issue-#101-breadcrumb
Fix/issue #101 breadcrumb
- Loading branch information
Showing
2 changed files
with
70 additions
and
60 deletions.
There are no files selected for viewing
122 changes: 65 additions & 57 deletions
122
src/App/components/Breadcrumb/__snapshots__/index.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,82 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Component: Breadcrumb renders breadcrumb with the provided items in the items prop 1`] = ` | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<li | ||
key="0" | ||
<nav> | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<span> | ||
test | ||
</span> | ||
</li> | ||
</ol> | ||
<li | ||
key="0" | ||
> | ||
<span> | ||
test | ||
</span> | ||
</li> | ||
</ol> | ||
</nav> | ||
`; | ||
|
||
exports[`Component: Breadcrumb renders breadcrumb with the provided items wrapped in anchor tags when href is provided in the items prop 1`] = ` | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<li | ||
key="0" | ||
<nav> | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<a | ||
href="www.example.com" | ||
<li | ||
key="0" | ||
> | ||
test | ||
</a> | ||
</li> | ||
</ol> | ||
<a | ||
href="www.example.com" | ||
> | ||
test | ||
</a> | ||
</li> | ||
</ol> | ||
</nav> | ||
`; | ||
|
||
exports[`Component: Breadcrumb renders multiple breadcrumbs when provided in the items prop 1`] = ` | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<li | ||
key="0" | ||
> | ||
<span> | ||
test #1 | ||
</span> | ||
</li> | ||
<li | ||
key="1" | ||
> | ||
<span> | ||
test #2 | ||
</span> | ||
</li> | ||
<li | ||
key="2" | ||
<nav> | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<span> | ||
test #3 | ||
</span> | ||
</li> | ||
<li | ||
key="3" | ||
> | ||
<span> | ||
test #4 | ||
</span> | ||
</li> | ||
</ol> | ||
<li | ||
key="0" | ||
> | ||
<span> | ||
test #1 | ||
</span> | ||
</li> | ||
<li | ||
key="1" | ||
> | ||
<span> | ||
test #2 | ||
</span> | ||
</li> | ||
<li | ||
key="2" | ||
> | ||
<span> | ||
test #3 | ||
</span> | ||
</li> | ||
<li | ||
key="3" | ||
> | ||
<span> | ||
test #4 | ||
</span> | ||
</li> | ||
</ol> | ||
</nav> | ||
`; | ||
|
||
exports[`Component: Breadcrumb renders with default items when no items is provided through items prop 1`] = ` | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<DefaultItems /> | ||
</ol> | ||
<nav> | ||
<ol | ||
className="breadcrumb" | ||
> | ||
<DefaultItems /> | ||
</ol> | ||
</nav> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters