dm4t2 / intl-number-input

Easy input of formatted numbers based on the ECMAScript Internationalization API (Intl.NumberFormat).
https://dm4t2.github.io/intl-number-input/
MIT License
12 stars 3 forks source link

Allow providing precision range #5

Closed ragulka closed 2 years ago

ragulka commented 2 years ago

Original issue: https://github.com/dm4t2/intl-number-input/issues/3

This basically reverts the changes from https://github.com/dm4t2/vue-currency-input/commit/887f30c0e529a3d632ab20582d4f359bee2a1420#diff-29cfda01fd63d76489aae8c49e2124d57b0b4597e2a425339c73a4b6c40a7a99 and adds tests.

codecov[bot] commented 2 years ago

Codecov Report

Merging #5 (5b51ba8) into master (ee62d00) will increase coverage by 0.67%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
+ Coverage   31.12%   31.80%   +0.67%     
==========================================
  Files           6        6              
  Lines         302      305       +3     
  Branches      100      103       +3     
==========================================
+ Hits           94       97       +3     
  Misses        208      208              
Flag Coverage Δ
unittests 31.80% <100.00%> (+0.67%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/api.ts 100.00% <ø> (ø)
src/numberFormat.ts 90.24% <100.00%> (+0.37%) :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 ee62d00...5b51ba8. Read the comment docs.