2021-10-24 06:09:43 +02:00
|
|
|
import { render } from '@testing-library/react'
|
|
|
|
|
2022-02-19 23:20:33 +01:00
|
|
|
import {
|
|
|
|
guildExample,
|
|
|
|
guildExample2
|
|
|
|
} from '../../../cypress/fixtures/guilds/guild'
|
2022-01-07 21:21:38 +01:00
|
|
|
import {
|
|
|
|
userExample,
|
|
|
|
userSettingsExample
|
|
|
|
} from '../../../cypress/fixtures/users/user'
|
2021-10-24 06:09:43 +02:00
|
|
|
import { UserProfile } from './UserProfile'
|
|
|
|
|
|
|
|
describe('<UserProfile />', () => {
|
|
|
|
it('should render successfully', () => {
|
|
|
|
const { baseElement } = render(
|
2022-02-19 23:20:33 +01:00
|
|
|
<UserProfile
|
|
|
|
user={{ ...userExample, settings: userSettingsExample }}
|
|
|
|
guilds={[guildExample, guildExample2]}
|
|
|
|
/>
|
2021-10-24 06:09:43 +02:00
|
|
|
)
|
|
|
|
expect(baseElement).toBeTruthy()
|
|
|
|
})
|
|
|
|
})
|