material-motion-js
material-motion-js copied to clipboard
Write unit tests for draggable
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
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).