Skip to content

Commit

Permalink
chore(project): add playlistFixture
Browse files Browse the repository at this point in the history
  • Loading branch information
olga-jwp committed Jul 21, 2023
1 parent 5bf7a14 commit fe7cad4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 429 deletions.
7 changes: 4 additions & 3 deletions src/components/CardGrid/CardGrid.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('<CardGrid>', () => {
it('renders and matches snapshot', () => {
const placeholderData = generatePlaylistPlaceholder();
const playlist = playlistFixture as Playlist;
const { container } = renderWithRouter(
<CardGrid
playlist={placeholderData}
playlist={playlist}
onCardHover={vi.fn()}
onCardClick={vi.fn()}
isLoading={false}
Expand Down
Loading

0 comments on commit fe7cad4

Please sign in to comment.