ant-design/components/_util/__tests__/easings.test.ts
Zheeeng e91d25622b
chore: signatures for tests (#37949)
* fix: signatures for tests

* fix: remove unused

* fix: test cases

* fix: test cases
2022-10-19 11:50:18 +08:00

13 lines
315 B
TypeScript

import { easeInOutCubic } from '../easings';
describe('Test easings', () => {
it('easeInOutCubic return value', () => {
const nums: number[] = [];
for (let index = 0; index < 5; index++) {
nums.push(easeInOutCubic(index, 1, 5, 4));
}
expect(nums).toEqual([1, 1.25, 3, 4.75, 5]);
});
});