We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d807cb commit f62acc7Copy full SHA for f62acc7
src/components/ImageCard/ImageCard.test.tsx
@@ -6,10 +6,10 @@ import ImageCard from './ImageCard'
6
describe('ImageCard', () => {
7
it('should render ImageCard component correctly with basic props', async () => {
8
render(
9
- <ImageCard src="https://i.imgur.com/pEI5qWM.jpeg" alt="Cat 🐱" />
+ <ImageCard src="Krizza.jpg" alt="Cat 🐱" />
10
)
11
const image = await screen.findByRole('img')
12
- expect(image).toHaveAttribute('src', 'https://i.imgur.com/pEI5qWM.jpeg')
+ expect(image).toHaveAttribute('src', 'Krizza.jpg')
13
expect(image).toHaveAttribute('alt', 'Cat 🐱')
14
expect(image).toBeVisible()
15
})
0 commit comments