Skip to content

Commit

Permalink
test: Step.stories.tsx μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Sep 24, 2024
1 parent 8966a59 commit 040d580
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/components/StepList/Step.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import type {Meta, StoryObj} from '@storybook/react';

import Step from './Step';

Check failure on line 4 in client/src/components/StepList/Step.stories.tsx

View workflow job for this annotation

GitHub Actions / test

There should be at least one empty line between import groups
import {MemoryRouter} from 'react-router-dom';

Check failure on line 5 in client/src/components/StepList/Step.stories.tsx

View workflow job for this annotation

GitHub Actions / test

`react-router-dom` import should occur before import of `./Step`

const meta = {
title: 'Components/Step',
Expand Down Expand Up @@ -52,9 +53,11 @@ type Story = StoryObj<typeof meta>;
export const Playground: Story = {
render: ({...args}) => {
return (
<div style={{width: '400px'}}>
<Step {...args} />
</div>
<MemoryRouter>
<div style={{width: '400px'}}>
<Step {...args} />
</div>
</MemoryRouter>
);
},
};

0 comments on commit 040d580

Please sign in to comment.