aweary/react-perimeter

Add test suite

Open

#5 建立於 2017年3月17日

在 GitHub 查看
 (4 留言) (2 反應) (0 負責人)JavaScript (27 fork)github user discovery
good first bughelp wanted

倉庫指標

Star
 (1,042 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南