-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add grantee-project stats stories
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/grants/components/grantee-project/project-tab-section.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}; |