Skip to content

Commit

Permalink
test: (#54) 막대 하나 그래프 사이즈별 테스트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
chsua committed Jul 16, 2023
1 parent 075f1ca commit 6d0552d
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { Meta, StoryObj } from '@storybook/react';

import { mockVoteResult } from '../mockData';

import OneLineGraph from '.';

const meta: Meta<typeof OneLineGraph> = {
component: OneLineGraph,
};

export default meta;
type Story = StoryObj<typeof OneLineGraph>;

export const SizeSm: Story = {
render: () => <OneLineGraph size="sm" voteResult={mockVoteResult} />,
};

export const SizeMd: Story = {
render: () => <OneLineGraph size="md" voteResult={mockVoteResult} />,
};

export const SizeLg: Story = {
render: () => <OneLineGraph size="lg" voteResult={mockVoteResult} />,
};

0 comments on commit 6d0552d

Please sign in to comment.