Skip to content

Commit

Permalink
test: add grantee-project stats stories
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshift committed Aug 12, 2024
1 parent f4d7996 commit 83802de
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { Meta, StoryObj } from '@storybook/react';

import { GranteeProjectStats } from '@/grants/components/grantee-project/project-stats';

import { fakeGranteeProject } from '@/grants/testutils/fake-grantee-project';

const fakeProject = fakeGranteeProject();

const meta: Meta<typeof GranteeProjectStats> = {
title: 'grants/components/grantee-project/tab-section',
component: GranteeProjectStats,
};

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

export const OverallSummary: Story = {
args: {
stats: fakeProject.tabs[0].stats,
},
};

export const ImpactMetrics: Story = {
args: {
stats: fakeProject.tabs[1].stats,
},
};

export const GithubMetrics: Story = {
args: {
stats: fakeProject.tabs[2].stats,
},
};

export const CodeMetrics: Story = {
args: {
stats: fakeProject.tabs[3].stats,
},
};

0 comments on commit 83802de

Please sign in to comment.