File size: 315 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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]);
  });
});