-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Breadcrumbs component test file to new format (#3342)
* refactors test suite to new testing format * updates itemlist to include second breadcrumb * Update src/components/breadcrumbs/_macro.spec.js --------- Co-authored-by: Alessio Venturini <[email protected]> Co-authored-by: rmccar <[email protected]>
- Loading branch information
1 parent
2ed65e3
commit 6afaba9
Showing
2 changed files
with
157 additions
and
115 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export const EXAMPLE_BREADCRUMBS_REQUIRED_PARAMS = { | ||
itemsList: [ | ||
{ | ||
url: 'https://example.com/', | ||
text: 'Home', | ||
}, | ||
], | ||
}; | ||
|
||
export const EXAMPLE_BREADCRUMBS_ALL_PARAMS = { | ||
classes: 'extra-class another-extra-class', | ||
ariaLabel: 'Breadcrumbs label', | ||
id: 'example-breadcrumbs', | ||
itemsList: [ | ||
{ | ||
itemClasses: 'item-extra-class item-another-extra-class', | ||
linkClasses: 'link-extra-class link-another-extra-class', | ||
url: 'https://example.com/', | ||
text: 'Home', | ||
attributes: { | ||
'data-a': '123', | ||
'data-b': '456', | ||
}, | ||
id: 'first-breadcrumb', | ||
}, | ||
{ | ||
url: 'https://example.com/guide/', | ||
text: 'Guide', | ||
id: 'second-breadcrumb', | ||
attributes: { | ||
'data-a': '789', | ||
'data-b': 'ABC', | ||
}, | ||
}, | ||
], | ||
}; |