Skip to content

Commit f62acc7

Browse files
committed
don't make network request in test
1 parent 6d807cb commit f62acc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ImageCard/ImageCard.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import ImageCard from './ImageCard'
66
describe('ImageCard', () => {
77
it('should render ImageCard component correctly with basic props', async () => {
88
render(
9-
<ImageCard src="https://i.imgur.com/pEI5qWM.jpeg" alt="Cat 🐱" />
9+
<ImageCard src="Krizza.jpg" alt="Cat 🐱" />
1010
)
1111
const image = await screen.findByRole('img')
12-
expect(image).toHaveAttribute('src', 'https://i.imgur.com/pEI5qWM.jpeg')
12+
expect(image).toHaveAttribute('src', 'Krizza.jpg')
1313
expect(image).toHaveAttribute('alt', 'Cat 🐱')
1414
expect(image).toBeVisible()
1515
})

0 commit comments

Comments
 (0)