olistic / warriorjs

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

Fix getLevelConfig helper #236

Closed olistic closed 5 years ago

olistic commented 5 years ago

It wasn't actually a pure function, as the spread operator does not do a deep copy.

codecov-io commented 5 years ago

Codecov Report

Merging #236 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #236   +/-   ##
=======================================
  Coverage   92.65%   92.65%           
=======================================
  Files          92       92           
  Lines        1089     1089           
  Branches      165      165           
=======================================
  Hits         1009     1009           
  Misses         65       65           
  Partials       15       15
Impacted Files Coverage Δ
...ges/warriorjs-helper-get-level-config/src/index.js 100% <100%> (ø) :arrow_up:

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 be6ce00...f236e74. Read the comment docs.