aweary/react-perimeter

Add test suite

オープン

#5 opened on 2017/03/17

 (4 件のコメント) (2 件のリアクション) (0 人の担当者)JavaScript (27 件のフォーク)github user discovery
good first bughelp wanted

Repository metrics

Stars
 (1,042 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド