Skip to content

Commit

Permalink
fix: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Aug 25, 2022
1 parent 11230ce commit 1718499
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,24 @@ describe('BazingaCell', () => {
`;
exports[`TypeScript: generates list cells if list flag passed in 3`] = `
"import type { Story } from '@storybook/react'
"import type { ComponentStory } from '@storybook/react'
import { Loading, Empty, Failure, Success } from './BazingaCell'
import { standard } from './BazingaCell.mock'
export const loading: Story<typeof Loading> = (args) => {
export const loading: ComponentStory<typeof Loading> = (args) => {
return Loading ? <Loading {...args} /> : <></>
}
export const empty: Story<typeof Empty> = (args) => {
export const empty: ComponentStory<typeof Empty> = (args) => {
return Empty ? <Empty {...args} /> : <></>
}
export const failure: Story<typeof Failure> = (args) => {
export const failure: ComponentStory<typeof Failure> = (args) => {
return Failure ? <Failure error={new Error('Oh no')} {...args} /> : <></>
}
export const success: Story<typeof Success> = (args) => {
export const success: ComponentStory<typeof Success> = (args) => {
return Success ? <Success {...standard()} {...args} /> : <></>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ export default Routes",
exports[`generates typescript pages 1`] = `undefined`;

exports[`generates typescript pages 2`] = `
"import type { Story } from '@storybook/react'
"import type { ComponentStory } from '@storybook/react'
import TsFilesPage from './TsFilesPage'
export const generated: Story<typeof TsFilesPage> = (args) => {
export const generated: ComponentStory<typeof TsFilesPage> = (args) => {
return <TsFilesPage {...args} />
}
Expand Down

0 comments on commit 1718499

Please sign in to comment.