hyochan / dooboo-ui-legacy

React Native UI Components with react-hook (web, ios, android)
MIT License
140 stars 72 forks source link

Refactored [Button] tests #375

Closed hyochan closed 3 years ago

hyochan commented 3 years ago

Description

Migrated [Button] tests from react-test-renderer to react-native-testing-library with 100% test coverage.

Tests

Tested [Button] with 100% coverage. Events and conditional rendering with different styles are tested.

Checklist

Before you create this PR confirms that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

codecov[bot] commented 3 years ago

Codecov Report

Merging #375 (6c5869f) into master (1a70802) will increase coverage by 1.19%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #375      +/-   ##
==========================================
+ Coverage   72.25%   73.44%   +1.19%     
==========================================
  Files          36       36              
  Lines         919      919              
  Branches      256      256              
==========================================
+ Hits          664      675      +11     
+ Misses        189      188       -1     
+ Partials       66       56      -10