Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug committed Mar 1, 2024
1 parent 1846524 commit 3e92655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/DefinitionList/DefinitionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface DefinitionListItem {

export interface DefinitionListProps {
items: DefinitionListItem[];
copyPosition: 'inside' | 'outside';
copyPosition?: 'inside' | 'outside';
responsive?: boolean;
nameMaxWidth?: number;
contentMaxWidth?: number | 'auto';
Expand Down Expand Up @@ -91,7 +91,7 @@ export function DefinitionList({
}
: {};
return (
<dl className={b({responsive}, className)}>
<dl className={b({responsive}, className)} role="list">
{items.map(({name, href, content, title, copyText, note, key, multilineName}) => {
const term = href ? <Link href={href}>{name}</Link> : name;
const definitionContent = content ?? '—';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ describe('components: DefinitionList', () => {
getComponent({items});

const component = screen.getByRole('term');
expect(component).toHaveClass(b('term'));
expect(component).toHaveClass(b('term-container', {multiline: true}));
});
});

0 comments on commit 3e92655

Please sign in to comment.