saplingjs / sapling

🌿 Sapling is a Node.js framework for faster-than-light web development.
https://www.saplingjs.com
MIT License
14 stars 0 forks source link

Use `coerceArray` #418

Closed groenroos closed 2 years ago

groenroos commented 2 years ago

416 introduced a coerceArray method for forcing any variable into an array.

This PR implements that method throughout the app.

codecov[bot] commented 2 years ago

Codecov Report

Merging #418 (643a5bb) into master (1cb6ee1) will decrease coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #418      +/-   ##
==========================================
- Coverage   98.05%   98.05%   -0.01%     
==========================================
  Files          37       37              
  Lines        4581     4575       -6     
==========================================
- Hits         4492     4486       -6     
  Misses         89       89              
Impacted Files Coverage Δ
core/loadServer.js 94.48% <100.00%> (-0.04%) :arrow_down:
drivers/db/Memory.js 99.09% <100.00%> (-0.03%) :arrow_down:
lib/Response.js 98.45% <100.00%> (-0.01%) :arrow_down:
lib/User.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 1cb6ee1...643a5bb. Read the comment docs.