Skip to content

🎥 Make videos programmatically with React

updated test descriptions

Shankhadeep Deyef3718b09a57
diff --git a/packages/core/src/test/interpolateColors.test.ts b/packages/core/src/test/interpolateColors.test.ts
index 8ea8434749..4c0471b968 100644
--- a/packages/core/src/test/interpolateColors.test.ts
+++ b/packages/core/src/test/interpolateColors.test.ts
@@ -6,12 +6,16 @@ test('Throws if color space is not right', () => {
//@ts-expect-error
interpolateColors(1, [0, 1], ['#ffaadd', '#fabgdf'], 'GFR');
}, /invalid color space provided: GFR. Supported values are: \['RGB', 'HSV'\]/);
+});
+test('Throws error if input, inputRange or outputRange is undefined', () => {
expectToThrow(() => {
//@ts-expect-error
interpolateColors(undefined, undefined, undefined);
}, /input or inputRange or outputRange can not be undefined/);
+});
+test('inputRange and outputRange must be of same length', () => {
expectToThrow(() => {
interpolateColors(1, [1, 2, 3], ['#ffffff', '#aaaaaa']);
}, /inputRange \(3\) and outputRange \(2\) must have the same length/);