mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
test: add easings.ts test suite
This commit is contained in:
parent
ebdbd0ef6f
commit
b1cd8e32d9
12
components/_util/__tests__/easings.test.js
Normal file
12
components/_util/__tests__/easings.test.js
Normal file
@ -0,0 +1,12 @@
|
||||
import { easeInOutCubic } from '../easings';
|
||||
|
||||
describe('Test easings', () => {
|
||||
it('easeInOutCubic return value', () => {
|
||||
const nums = [];
|
||||
for (let index = 0; index < 5; index++) {
|
||||
nums.push(easeInOutCubic(index, 1, 5, 4));
|
||||
}
|
||||
|
||||
expect(nums).toEqual([1, 1.25, 3, 4.75, 5]);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user