mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
14 lines
349 B
JavaScript
14 lines
349 B
JavaScript
import { easeInOutCubic } from '../easings';
|
|
|
|
describe('Test easings', () => {
|
|
it('easeInOutCubic return value', () => {
|
|
const nums = [];
|
|
// 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]);
|
|
});
|
|
});
|