egg-logger icon indicating copy to clipboard operation
egg-logger copied to clipboard

refactor: context formatter

Open yolopunk opened this issue 6 years ago • 1 comments

Checklist
  • [x] npm test passes
  • [x] tests and/or benchmarks are included
  • [x] documentation is changed or added
  • [x] commit message follows commit guidelines
Affected core subsystem(s)
Description of change

我本来是想让contextFormatter输出在控制台的内容也可以显示颜色的,发现要改部分原有测试用例,就放弃了。现在只是整理了一下这部分的代码

yolopunk avatar Apr 26 '19 05:04 yolopunk

Codecov Report

Merging #54 (e189ea9) into master (a539ffe) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #54   +/-   ##
=======================================
  Coverage   99.45%   99.46%           
=======================================
  Files          14       14           
  Lines         370      372    +2     
=======================================
+ Hits          368      370    +2     
  Misses          2        2           
Impacted Files Coverage Δ
lib/egg/context_logger.js 100.00% <100.00%> (ø)
lib/utils.js 100.00% <100.00%> (ø)

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 a539ffe...e189ea9. Read the comment docs.

codecov[bot] avatar Apr 26 '19 05:04 codecov[bot]