ease.js 368 B

12345678910111213141516
  1. import { ease } from 'scroll/util/ease'
  2. describe('ease.js', () => {
  3. it('#swipe', () => {
  4. expect(ease.swipe.fn(0.2).toFixed(2))
  5. .to.equal('0.67')
  6. })
  7. it('#swipeBounce', () => {
  8. expect(ease.swipeBounce.fn(0.2).toFixed(2))
  9. .to.equal('0.36')
  10. })
  11. it('#bounce', () => {
  12. expect(ease.bounce.fn(0.2).toFixed(2))
  13. .to.equal('0.59')
  14. })
  15. })