aweary/react-perimeter

Add test suite

开放

#5 创建于 2017年3月17日

 (4 条评论) (2 个反应) (0 位负责人)JavaScript (27 个派生)github user discovery
good first bughelp wanted

仓库指标

星标
 (1,042 个星标)
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.

贡献者指南