yeldiRium / st3k101

UNMAINTAINED.
2 stars 1 forks source link

[TASK] add unit-tests for parser functions #100

Closed yeldiRium closed 5 years ago

yeldiRium commented 5 years ago

This adds some tests for parser functions. I will update this pull request as I add more tests. Feel free to review; If you do I will merge whatever is accepted and open a new PR for the next tests.


This change is Reviewable

codecov[bot] commented 5 years ago

Codecov Report

Merging #100 into develop will increase coverage by 6.96%. The diff coverage is 94.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop    #100      +/-   ##
==========================================
+ Coverage     0.21%   7.18%   +6.96%     
==========================================
  Files           56      56              
  Lines         1364    1309      -55     
  Branches       111     136      +25     
==========================================
+ Hits             3      94      +91     
+ Misses        1250    1104     -146     
  Partials       111     111
Impacted Files Coverage Δ
frontend/src/api/Errors/index.js 20% <ø> (+20%) :arrow_up:
frontend/src/api/Util/Parse.js 61.38% <94.54%> (+61.38%) :arrow_up:
frontend/src/model/OwnedResource.js 0% <0%> (ø) :arrow_up:
frontend/src/utility/functional.js 0% <0%> (ø) :arrow_up:
...d/src/model/SurveyBase/Challenge/EMailBlacklist.js 0% <0%> (ø) :arrow_up:
...ontend/src/model/Submission/SubmissionDimension.js 0% <0%> (ø) :arrow_up:
...d/src/model/SurveyBase/Challenge/EMailWhitelist.js 0% <0%> (ø) :arrow_up:
frontend/src/model/TrackerEntry.js 0% <0%> (ø) :arrow_up:
frontend/src/model/SurveyBase/Config/Range.js 0% <0%> (ø) :arrow_up:
frontend/src/model/SurveyBase/Dimension.js 0% <0%> (ø) :arrow_up:
... and 16 more

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 1306a78...a4f61fb. Read the comment docs.