-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
It's probably hard to test the actual core feature of react-perimeter , but there are a few things we can definitely test:
- correctly exports the React component
- renders children
- attaches
refcorrectly with render callbacks - registers event listeners on mount
- removes event listeners on unmount
- removes event listeners after
onBreachis called ifonceistrue - more stuff
I'd like to use jest and enzyme for this.
ConAntonakos and krishaamer