usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.56k stars 1.27k forks source link

feat: add 'isNotEmpty' assertion operator #3522

Open sanjai0py opened 22 hours ago

sanjai0py commented 22 hours ago

Description

This PR adds support for the isNotEmpty assertion operator. The isNotEmpty assertion checks that a value is not null, not 0, not false, not an empty string, not an empty array, and not an empty object. The implementation includes:


Contribution Checklist:

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.