aweary/react-perimeter

Add test suite

Open

#5 geöffnet am 17. März 2017

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

Repository-Metriken

Stars
 (1.042 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

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