Blame view

node_modules/better-scroll/test/unit/specs/modules/ease.js 368 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  import { ease } from 'scroll/util/ease'
  
  describe('ease.js', () => {
    it('#swipe', () => {
      expect(ease.swipe.fn(0.2).toFixed(2))
        .to.equal('0.67')
    })
    it('#swipeBounce', () => {
      expect(ease.swipeBounce.fn(0.2).toFixed(2))
        .to.equal('0.36')
    })
    it('#bounce', () => {
      expect(ease.bounce.fn(0.2).toFixed(2))
        .to.equal('0.59')
    })
  })