Skip to content

Commit

Permalink
Fix types in index test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoble committed Sep 29, 2024
1 parent e9f42b0 commit dcbf75e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/organisms/cardSlider/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ import { GRID_GAP, MIN_CARD_WIDTH } from './index.helpers';

jest.mock('~lib/hooks/useElementWidth');

const defaultProps = {
const defaultProps: {
previous: string;
next: string;
items: JSX.Element[];
rows?: number;
onIndexChange?: (state: { index: number; total: number }) => void;
} = {
previous: 'previous',
next: 'next',
items: [undefined],
items: [],
};

const renderComponent = buildRenderer(Slider, {
Expand Down

0 comments on commit dcbf75e

Please sign in to comment.