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

fix: JSON().Len() and JSON().JQ().Len() on null objects #47

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

Eun
Copy link
Owner

@Eun Eun commented Mar 4, 2021

Problem

  • Expect().Body().JSON().Len() is returning an error when the payload is null.
  • Expect().Body().JSON().JQ().Len() is returning an error when the specified JQ expression returns null.

Solution

Both cases should return a len of 0.

Checklist

  • Ran make test
  • Review README.md go //ignore sections
  • Added Changelog entry to README.md when this is a #major or #minor release.

@Eun Eun changed the base branch from master to staging March 4, 2021 07:27
@Eun Eun merged commit 4229704 into staging Mar 4, 2021
@Eun Eun deleted the fix-len-on-null branch March 4, 2021 07:29
Eun added a commit that referenced this pull request Mar 4, 2021
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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