🎥 Make videos programmatically with React
add test for negative number with unit
ChetanKarwa4c8a1cbfe04a
diff --git a/packages/animation-utils/src/test/interpolate-styles.test.ts b/packages/animation-utils/src/test/interpolate-styles.test.tsindex d7334f2338..5d6fe0d92e 100644--- a/packages/animation-utils/src/test/interpolate-styles.test.ts+++ b/packages/animation-utils/src/test/interpolate-styles.test.ts@@ -267,3 +267,22 @@ test('Should interpolate between 0 and values with units', () => {padding: '5px',});});++test('Should interpolate between negative values with units', () => {+ expect(+ interpolateStyles(+ 0.5,+ [0, 1],+ [+ {+ left: '-10px',+ },+ {+ left: '-20px',+ },+ ],+ ),+ ).toEqual({+ left: '-15px',+ });+});