Skip to content

return null for missing keys - #1536

Merged
ljharb merged 1 commit into
enzymejs:masterfrom
bdwain:fix-key
Feb 23, 2018
Merged

ljharb merged 1 commit into
enzymejs:masterfrom
bdwain:fix-key

Conversation

@bdwain

@bdwain bdwain commented Feb 23, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #1488 by checking if a key is undefined, and if so, returning null.

Without the code changes, the new tests will fail with errors like this

AssertionError: expected undefined to equal null

@bdwain bdwain changed the title fix #1488 by returning null for missing keys return null for missing keys Feb 23, 2018
@bdwain

bdwain commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

fixed lint errors

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit.

@ljharb
ljharb merged commit 0efc948 into enzymejs:master Feb 23, 2018
@bdwain
bdwain deleted the fix-key branch February 23, 2018 08:31
@bdwain

bdwain commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants