From fe7cad40268dc76d720bc703a1fec8c78fbbb67d Mon Sep 17 00:00:00 2001 From: olga-jwp Date: Fri, 21 Jul 2023 13:54:06 +0200 Subject: [PATCH] chore(project): add playlistFixture --- src/components/CardGrid/CardGrid.test.tsx | 7 +- .../__snapshots__/CardGrid.test.tsx.snap | 456 ++---------------- 2 files changed, 34 insertions(+), 429 deletions(-) diff --git a/src/components/CardGrid/CardGrid.test.tsx b/src/components/CardGrid/CardGrid.test.tsx index ba3775030..649e8d853 100644 --- a/src/components/CardGrid/CardGrid.test.tsx +++ b/src/components/CardGrid/CardGrid.test.tsx @@ -2,15 +2,16 @@ import * as React from 'react'; import CardGrid from './CardGrid'; -import { generatePlaylistPlaceholder } from '#src/utils/collection'; +import playlistFixture from '#test/fixtures/playlist.json'; import { renderWithRouter } from '#test/testUtils'; +import type { Playlist } from '#types/playlist'; describe('', () => { it('renders and matches snapshot', () => { - const placeholderData = generatePlaylistPlaceholder(); + const playlist = playlistFixture as Playlist; const { container } = renderWithRouter( > renders and matches snapshot 1`] = ` role="cell" > @@ -29,7 +29,13 @@ exports[` > renders and matches snapshot 1`] = ` >
+ > +
+ 4 min +
+
> renders and matches snapshot 1`] = ` >
-
-
-
- -