material-motion-js icon indicating copy to clipboard operation
material-motion-js copied to clipboard

Write unit tests for draggable

Open appsforartists opened this issue 8 years ago • 1 comments

This could be a bit complex. We should test:

  • the final value is correct
  • intermediary values are correct
  • all the possible GestureRecognitionStates are correct
  • recognitionThreshold works as expected
  • setPointerCapture is called

appsforartists avatar Apr 21 '17 23:04 appsforartists

We've been lax on unit tests in the interests of getting an MVP together. There are so many surfaces that need better testing that I'm mildly tempted to close this (under the assumption that we need thoughtful unit tests everywhere).

appsforartists avatar Oct 04 '17 03:10 appsforartists