olistic / warriorjs

🏰 An exciting game of programming and Artificial Intelligence
https://warriorjs.com
MIT License
9.43k stars 490 forks source link

Improve profile directory detection #133

Closed glneto closed 6 years ago

glneto commented 6 years ago

Hello! There were some problems while rebasing the previous branch.

This one follows the same approach, checking for the Player.js file as requested on the issue.

Tests are already written for the new function.

Hope it helps.

Closes #119

codecov-io commented 6 years ago

Codecov Report

Merging #133 into master will decrease coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #133      +/-   ##
==========================================
- Coverage    90.9%   90.89%   -0.02%     
==========================================
  Files          80       80              
  Lines        1023     1032       +9     
  Branches      162      164       +2     
==========================================
+ Hits          930      938       +8     
- Misses         77       78       +1     
  Partials       16       16
Impacted Files Coverage Δ
packages/warriorjs-cli/src/Profile.js 96.19% <100%> (-0.69%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 27d364e...fb478a6. Read the comment docs.