mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
dd31d7775a
* test: migrate part of utils tests * test: migrate part of utils tests * test: migrate part of utils tests
14 lines
359 B
TypeScript
14 lines
359 B
TypeScript
import { easeInOutCubic } from '../easings';
|
|
|
|
describe('Test easings', () => {
|
|
it('easeInOutCubic return value', () => {
|
|
const nums: number[] = [];
|
|
// eslint-disable-next-line no-plusplus
|
|
for (let index = 0; index < 5; index++) {
|
|
nums.push(easeInOutCubic(index, 1, 5, 4));
|
|
}
|
|
|
|
expect(nums).toEqual([1, 1.25, 3, 4.75, 5]);
|
|
});
|
|
});
|