ngyv / re-modelr

A simple-to-use pure javascript object-relational mapping to manage data.
MIT License
0 stars 0 forks source link

[ENHANCEMENT] Set default value in `_validateAttributes` #22

Closed ngyv closed 6 years ago

ngyv commented 6 years ago

Sets default value specified if the attribute value is undefined or null.

Also accepts overrideTypes options array which is by default [propTypes.undefined, propTypes.null]

codecov[bot] commented 6 years ago

Codecov Report

Merging #22 into master will increase coverage by 0.07%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   94.88%   94.95%   +0.07%     
==========================================
  Files           5        5              
  Lines         469      476       +7     
==========================================
+ Hits          445      452       +7     
  Misses         24       24
Impacted Files Coverage Δ
lib/model-descriptors.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 9fb9f8a...c1cebf7. Read the comment docs.