🎥 Make videos programmatically with React
better naming of tests
Jonas Brunnera5ea747ec3a2
diff --git a/packages/core/src/test/Img.test.tsx b/packages/core/src/test/Img.test.tsxindex e401e1cd40..59e043a035 100644--- a/packages/core/src/test/Img.test.tsx+++ b/packages/core/src/test/Img.test.tsx@@ -2,19 +2,17 @@ import {render} from '@testing-library/react';import React from 'react';import {Img} from '../Img';-describe('Img test', () => {- const ref = React.createRef<HTMLImageElement>();- const testImgUrl = 'https://source.unsplash.com/random/50x50';+const ref = React.createRef<HTMLImageElement>();+const testImgUrl = 'https://source.unsplash.com/random/50x50';- beforeEach(() => {- render(<Img ref={ref} src={testImgUrl} />);- });+beforeEach(() => {+ render(<Img ref={ref} src={testImgUrl} />);+});- test('renders img tag', () => {- expect(ref.current?.tagName).toBe('IMG');- });+test('Img component renders img tag', () => {+ expect(ref.current?.tagName).toBe('IMG');+});- test('forwards src', () => {- expect(ref.current).toHaveProperty('src', testImgUrl);- });+test('Src attribute is forwarded to img tag', () => {+ expect(ref.current).toHaveProperty('src', testImgUrl);});