aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/lists/description-list.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-09 18:19:38 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-09 19:41:02 +0200
commit0d59a6d2995b4119865271ed1908ede0bb96497c (patch)
tree67688e41b7aa253aa58cc08aa360431b07382f9d /src/components/atoms/lists/description-list.test.tsx
parent339c6957fe92c4ec1809159f09c55201d3794c18 (diff)
refactor: rewrite DescriptionList and Meta components
The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
Diffstat (limited to 'src/components/atoms/lists/description-list.test.tsx')
-rw-r--r--src/components/atoms/lists/description-list.test.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/atoms/lists/description-list.test.tsx b/src/components/atoms/lists/description-list.test.tsx
index d3f7045..83e405f 100644
--- a/src/components/atoms/lists/description-list.test.tsx
+++ b/src/components/atoms/lists/description-list.test.tsx
@@ -2,14 +2,14 @@ import { render } from '@test-utils';
import DescriptionList, { DescriptionListItem } from './description-list';
const items: DescriptionListItem[] = [
- { id: 'term-1', term: 'Term 1:', value: ['Value for term 1'] },
- { id: 'term-2', term: 'Term 2:', value: ['Value for term 2'] },
+ { id: 'term-1', label: 'Term 1:', value: ['Value for term 1'] },
+ { id: 'term-2', label: 'Term 2:', value: ['Value for term 2'] },
{
id: 'term-3',
- term: 'Term 3:',
+ label: 'Term 3:',
value: ['Value 1 for term 3', 'Value 2 for term 3', 'Value 3 for term 3'],
},
- { id: 'term-4', term: 'Term 4:', value: ['Value for term 4'] },
+ { id: 'term-4', label: 'Term 4:', value: ['Value for term 4'] },
];
describe('DescriptionList', () => {