Skip to content

Commit

Permalink
test(FooterLogo): Add CozyTheme wrapper to avoid console.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Aug 9, 2024
1 parent 3ed1db7 commit 91d5321
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/FooterLogo/FooterLogo.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react'
import { CozyProvider, createMockClient } from 'cozy-client'

import { FooterLogo } from './FooterLogo'
import CozyTheme from 'cozy-ui/transpiled/react/providers/CozyTheme'

describe('FooterLogo', () => {
const setup = mockLogos => {
Expand All @@ -30,7 +31,9 @@ describe('FooterLogo', () => {
})
render(
<CozyProvider client={mockClient}>
<FooterLogo />
<CozyTheme>
<FooterLogo />
</CozyTheme>
</CozyProvider>
)
}
Expand Down

0 comments on commit 91d5321

Please sign in to comment.