diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-10-18 19:25:02 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:14:41 +0100 |
| commit | 94448fa278ab352a741ff13f22d6104869571144 (patch) | |
| tree | 2185e77f2866d11a0144d4ac5a01c71a76807341 /src/components/organisms/layout/cards-list.test.tsx | |
| parent | c153f93dc8691a71dc76aad3dd618298da9d238a (diff) | |
feat(components): add a generic Grid component
* merge Columns, Gallery and CardsList into Grid component
* add more options to control the grid
Diffstat (limited to 'src/components/organisms/layout/cards-list.test.tsx')
| -rw-r--r-- | src/components/organisms/layout/cards-list.test.tsx | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/components/organisms/layout/cards-list.test.tsx b/src/components/organisms/layout/cards-list.test.tsx deleted file mode 100644 index b04e109..0000000 --- a/src/components/organisms/layout/cards-list.test.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import { describe, expect, it } from '@jest/globals'; -import { render, screen as rtlScreen } from '@testing-library/react'; -import { Card, CardBody, CardHeader, CardTitle } from '../../molecules'; -import { CardsList, type CardsListItem } from './cards-list'; - -const items: CardsListItem[] = [ - { - id: 'card-1', - card: ( - <Card> - <CardHeader> - <CardTitle>Et alias omnis</CardTitle> - </CardHeader> - <CardBody> - Rerum voluptatem sint sint sit dignissimos. Labore totam possimus - tempore atque veniam. Doloremque tenetur quidem beatae veritatis quo. - Quaerat voluptatem deleniti voluptas quia. Qui voluptatem iure iste - expedita et sed beatae. - </CardBody> - </Card> - ), - }, - { - id: 'card-2', - card: ( - <Card> - <CardHeader> - <CardTitle>Fugiat magnam nesciunt</CardTitle> - </CardHeader> - <CardBody> - Sit corporis animi ea. Earum asperiores error et. Aliquid quia et - consequatur. Magnam sit ut facere explicabo vel dolorem earum - assumenda. Aspernatur inventore quod libero est. - </CardBody> - </Card> - ), - }, - { - id: 'card-3', - card: ( - <Card> - <CardHeader> - <CardTitle>Asperiores eum quas</CardTitle> - </CardHeader> - <CardBody> - Doloremque ut cupiditate distinctio aperiam. Neque tempora unde - perferendis asperiores. Doloremque velit vel quam. Temporibus itaque - non non exercitationem. - </CardBody> - </Card> - ), - }, -]; - -describe('CardsList', () => { - it('renders a list of cards', () => { - render(<CardsList items={items} />); - expect(rtlScreen.getAllByRole('heading', { level: 2 })).toHaveLength( - items.length - ); - }); -}); |
