message: add a expect of unit test for resize event
diff: @@ -119,13 +119,20 @@ describe('BScroll - core scroll', () => {
  expect(scroll.y)
  .to.equal(-500)
  })
  - it('resize', () => {
  + it('resize', (done) => {
  + const refreshHandle = sinon.spy()
  + scroll.on('refresh', refreshHandle)
  if (document.createEvent) {
  - var event = document.createEvent("HTMLEvents");
  - event.initEvent("resize", true, true);
  - window.dispatchEvent(event);
  + var event = document.createEvent('HTMLEvents')
  + event.initEvent('resize', true, true)
  + window.dispatchEvent(event)
  } else if (document.createEventObject) {
  - window.fireEvent("onresize");
  + window.fireEvent('onresize')
  }
  + setTimeout(() => {
  + expect(refreshHandle)
  + .to.be.called
  + done()
  + }, 5000)
  })
  })
  