You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
315 B
13 lines
315 B
5 years ago
|
import { easeInOutCubic } from '../easings';
|
||
|
|
||
|
describe('Test easings', () => {
|
||
|
it('easeInOutCubic return value', () => {
|
||
2 years ago
|
const nums: number[] = [];
|
||
5 years ago
|
for (let index = 0; index < 5; index++) {
|
||
|
nums.push(easeInOutCubic(index, 1, 5, 4));
|
||
|
}
|
||
|
|
||
|
expect(nums).toEqual([1, 1.25, 3, 4.75, 5]);
|
||
|
});
|
||
|
});
|