msandrini / achiever

A tool built to achieve... wrapper over the old "Achievo" legacy system, transforming the old php+html return into a modern one-page app in React with GraphQL for the API.
MIT License
1 stars 2 forks source link

Fix middleware userDetails api #54

Closed enikolas closed 6 years ago

enikolas commented 6 years ago

It was returnin the wrong balance. So this fixes it, and add unit test to cover it.

codecov-io commented 6 years ago

Codecov Report

Merging #54 into master will decrease coverage by 8.07%. The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #54      +/-   ##
==========================================
- Coverage   55.13%   47.06%   -8.08%     
==========================================
  Files          38       41       +3     
  Lines         954     1243     +289     
  Branches      187      242      +55     
==========================================
+ Hits          526      585      +59     
- Misses        427      624     +197     
- Partials        1       34      +33
Impacted Files Coverage Δ
server/api/middleware.js 15.3% <85.71%> (ø)
server/api/utils.js 28.57% <0%> (ø)
server/logger.js 100% <0%> (ø)

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 e10fbac...94e5d4b. Read the comment docs.