Migrated SimpleCard test to react testing library

This commit is contained in:
Alejandro Celaya
2022-05-02 10:01:29 +02:00
parent 8b091a7b23
commit 66d8a32f49
2 changed files with 14 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ interface SimpleCardProps extends Omit<CardProps, 'title'> {
export const SimpleCard = ({ title, children, bodyClassName, ...rest }: SimpleCardProps) => (
<Card {...rest}>
{title && <CardHeader>{title}</CardHeader>}
{title && <CardHeader role="heading">{title}</CardHeader>}
<CardBody className={bodyClassName}>{children}</CardBody>
</Card>
);