You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The List component doesn't have tests written for it yet, and it would be great to establish some basic tests to check that it renders correctly. I'm imagining 5 test cases to start based on the code below:
The List component doesn't have tests written for it yet, and it would be great to establish some basic tests to check that it renders correctly. I'm imagining 5 test cases to start based on the code below:
design-system-react/src/components/List/List.tsx
Lines 22 to 28 in c0678a2
This issue would be completed if the following tests are written:
m-list__horizontal
class is added toList
whenisHorizontal
prop is passed inm-list__links
class is added toList
whenisLinks
prop is passed inm-list__spaced
class is added toList
whenisSpaced
prop is passed inm-list__unstyled
class is added toList
whenisUnstyled
prop is passed in<ol>
list is rendered whenisOrdered
prop is passed inAdd these 5 render tests into a file called
List.test.tsx
in the same folder asList.tsx
.The tests could look very similar to other basic rendering tests in the codebase like these label tests.
Let me know if you have any questions! 👍
The text was updated successfully, but these errors were encountered: