aweary/react-perimeter

Add test suite

Offen

#5 geöffnet am 17.03.2017

 (4 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)JavaScript (27 Forks)github user discovery
good first bughelp wanted

Repository-Metriken

Stars
 (1.042 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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 ref correctly with render callbacks
  • registers event listeners on mount
  • removes event listeners on unmount
  • removes event listeners after onBreach is called if once is true
  • more stuff

I'd like to use jest and enzyme for this.

Contributor Guide