Skip to content

Commit

Permalink
fix banner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Jan 17, 2023
1 parent 6d16add commit 4cf0cdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/src/components/atoms/Banner/Banner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe('<Banner />', () => {
it('renders', () => {
render(
<ThemeProvider theme={lightTheme}>
<Banner alert="warning" message="Message" title="Title" />
<Banner alert="warning" title="Title">
Message
</Banner>
</ThemeProvider>,
)
expect(screen.getByText('Title')).toBeInTheDocument()
Expand Down
2 changes: 1 addition & 1 deletion docs/src/reference/snippets/atoms/Banner.snippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import { Snippet } from '../../../types'
export const snippets: Snippet[] = [
{
name: 'Basic',
code: <Banner message="Content here" />,
code: <Banner title="Banner">Message</Banner>,
},
]

0 comments on commit 4cf0cdd

Please sign in to comment.