Skip to content

🎥 Make videos programmatically with React

add unique names for tests

Tobias Bonerbd0a085ad171
diff --git a/packages/core/src/test/image-format.test.ts b/packages/core/src/test/image-format.test.ts
index 35e2b7f67c..0efb312204 100644
--- a/packages/core/src/test/image-format.test.ts
+++ b/packages/core/src/test/image-format.test.ts
@@ -4,7 +4,7 @@ import {
} from '../config/image-format';
import {expectToThrow} from './expect-to-throw';
-test('It should throw if image format is not valid', () => {
+test('SetImageFormat should throw if image format is not valid', () => {
expectToThrow(
() =>
setImageFormat(
@@ -14,7 +14,7 @@ test('It should throw if image format is not valid', () => {
/Value invalidImageFormat is not valid as an image format./
);
});
-test('It should throw if image format is not valid', () => {
+test('validateSelectedPixelFormatAndImageFormatCombination should throw if image format is not valid', () => {
expectToThrow(
() =>
validateSelectedPixelFormatAndImageFormatCombination(
@@ -25,24 +25,25 @@ test('It should throw if image format is not valid', () => {
/Value invalidImageFormat is not valid as an image format./
);
});
-test('It should throw if pixel and image format combination is not valid', () => {
+test('Special case - invalid combination with pixel ("yuva420p") and image format ("jpeg") should throw', () => {
expectToThrow(
() =>
validateSelectedPixelFormatAndImageFormatCombination('yuva420p', 'jpeg'),
/Pixel format was set to 'yuva420p' but the image format is not PNG. To render transparent videos, you need to set PNG as the image format./
);
});
-test('It should not throw if pixel and image format combination is valid', () => {
+test('Special case - valid combination with pixel ("yuva420p") and image format ("png") should not throw', () => {
expect(() =>
validateSelectedPixelFormatAndImageFormatCombination('yuva420p', 'png')
).not.toThrow();
});
-test('It should not throw if pixel and image format combination is valid', () => {
+
+test('Valid combination with pixel and image format ("png") should not throw', () => {
expect(() =>
validateSelectedPixelFormatAndImageFormatCombination('yuv420p', 'png')
).not.toThrow();
});
-test('It should not throw if pixel and image format combination is valid', () => {
+test('Valid combination with pixel and image format ("jpeg") should not throw', () => {
expect(() =>
validateSelectedPixelFormatAndImageFormatCombination('yuv420p', 'jpeg')
).not.toThrow();