Skip to content
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

Add additional error handling for bad dictionary inputs #40

Merged
merged 2 commits into from
May 14, 2022
Merged

Conversation

M-Scott-Lassiter
Copy link
Owner

@M-Scott-Lassiter M-Scott-Lassiter commented May 14, 2022

Proposed Changes

Boolean values and NaN did not result in errors.

Pull Request Checklist

Please check if your PR fulfills the following requirements:

  • I have read the CONTRIBUTING guidelines
  • My commits follow the appropriate guidance
  • I certify that I have the appropriate permissions to add these changes to the repository
  • An issue is open for the changes proposed
  • I have added/updated tests for new code changes (if applicable)
  • Documentation has been added/updated (if applicable)
  • I built (npm run build) locally and pushed all changes

Issues Addressed: #39

Other Information

None

Passing a boolean value or NaN as a dictionary did not cause an error, and it should have. This
updates behavior and adds applicable tests.

Resolves: #39
@M-Scott-Lassiter M-Scott-Lassiter added the bug Something isn't working label May 14, 2022
@M-Scott-Lassiter M-Scott-Lassiter self-assigned this May 14, 2022
@codecov
Copy link

codecov bot commented May 14, 2022

Codecov Report

Merging #40 (3f37616) into main (9eb78bb) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #40   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           91        94    +3     
  Branches        25        28    +3     
=========================================
+ Hits            91        94    +3     
Impacted Files Coverage Δ
index.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 12ac33c...3f37616. Read the comment docs.

@M-Scott-Lassiter M-Scott-Lassiter merged commit 31f12ea into main May 14, 2022
@M-Scott-Lassiter
Copy link
Owner Author

🎉 This PR is included in version 1.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant