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

Enhance assertions. Should be able to count the number of keys in an object. #4

Open
joystickteam opened this issue Aug 19, 2023 · 0 comments
Labels
🚀 enhancement New feature or request

Comments

@joystickteam
Copy link
Contributor

joystickteam commented Aug 19, 2023

if responseBody.data is an object, then something like the following should give me a count of the number of keys on that object. Currently this length functionality only works if the target is an array.

{
  "path": "responseBody.length",
  "assertion": "length = 4"
}
@ValeriyMaslenikov ValeriyMaslenikov added the 🚀 enhancement New feature or request label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants