Comments (3)
Thanks for catching this @dcoomber !
Would you be able to work on fixing this?
The code is here
from bruno.
After reviewing https://www.chaijs.com/api/plugins/ along with stepping through some of the other assertions, I realised that we're looking to addProperty
and not addMethod
.
PR updated.
from bruno.
I have ended up proposing the use of https://github.com/chaijs/chai-http, but am uncertain if this is what you're looking for.
chai-http
.to.be.json
is merely a check that the response headers includes Content-Type: application/json
. In this form, the assertion would only ever be valid when comparing against res
and would not be usable for comparisons of subsets of the response structure.
Please let me know if you had a different solution in mind.
from bruno.
Related Issues (20)
- Compatibility with urls containing IPv6 IP addresses
- Blank screen on macOS v1.17.0
- [Feature Request] NPM package of importers
- Can't rename request from Bruno Windows on WSL `.bru` files
- Minor update needed in the French translation
- Error invoking remote method 'send-http-request': TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Authorization"] HOT 1
- Displaying NDJSON results in a long string response with no actual preview.
- Following doc links to local filesystem causes fatal state HOT 3
- Support relative local image path in markdown for docs.
- Regression: Environment Variables Values Not Working Since v1.18.0 HOT 3
- Cookies per collection
- JSON duplicate keys are modified on send HOT 1
- Unquoted Variables in JSON Body Break Comments and Prettier
- Move Environment Configuration from Popup to Tab
- OAuth 2.0 support for "state" parameter HOT 2
- Dutch translation of documentation files HOT 1
- Error invoking remote method 'send-http-request': TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: ISO-8859-1 HOT 1
- Blackia723
- bru.collectionVariables don't accurately reflect vars when vars are disabled
- Pre script var not interpreted HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bruno.