Skip to content

Fix casting from empty string to number or boolean #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

eduardomourar
Copy link
Contributor

@eduardomourar eduardomourar commented Aug 18, 2020

Issue #, if available: #12

Description of changes: This will cast to a number or boolean considering the case where an empty string is sent by CloudFormation.

@eduardomourar eduardomourar changed the title Add unit test for recast that fails Fix casting from empty string to number Aug 18, 2020
@codecov
Copy link

codecov bot commented Aug 18, 2020

Codecov Report

Merging #22 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   97.47%   97.49%   +0.02%     
==========================================
  Files          13       13              
  Lines         870      877       +7     
  Branches      148      154       +6     
==========================================
+ Hits          848      855       +7     
  Misses         22       22              
Flag Coverage Δ
#unittests 97.49% <100.00%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
src/recast.ts 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 2649728...d6adfb0. Read the comment docs.

@eduardomourar eduardomourar marked this pull request as ready for review August 18, 2020 22:02
@eduardomourar eduardomourar changed the title Fix casting from empty string to number Fix casting from empty string to number or boolean Aug 18, 2020
@eduardomourar eduardomourar merged commit 15e8ab7 into master Aug 18, 2020
@eduardomourar eduardomourar deleted the feature/0012-cast-number-issue branch August 18, 2020 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant