-
Notifications
You must be signed in to change notification settings - Fork 280
Hello world example failing on comparing body #343
Comments
I checked the white space in the response and in the blueprint files, and there were no extra white spaces in the response, and none in the bluprint file. Does dredd add some white spaces after the parsing of the blueprint file? |
Hey @mypark, Would you mind trying it again with an Apiary reporter and send me the link to the report? I'll try to investigate and help you. |
Ok here it is, https://app.apiary.io/mikedemo/tests/run/d1c5bd6b-ec0c-45f7-ba04-6dccbb3f5362 It looks like the diff sees an extra trailing character of some sort (space or newline? I can't tell) but the actual code itself and the response doesn't have the extra character - looking at the real and expected responses doesn't seem to show the extra character. |
this is the blueprint
and this is the node.js code
neither of which have a trailing space after the hello |
I had a very similar issue. Added a newline to my response and it validated correctly. That may not be the greatest solution though. |
Could #305 be related? |
I was able to reproduce this problem. It indeed looks like some issue with whitespace. Simple response with |
This is still an issue, but I decided to close duplicates.
|
I'd like to address the problem. I added a comment explaining the situation: #67 (comment) If you have any ideas, I'd be very glad to discuss possible solutions. |
…6.4.0 chore(deps-dev): update eslint requirement from 6.3.0 to 6.4.0
Trying the hello world example with express.js and seeing this failure in the test even though the body text/html response matches
The text was updated successfully, but these errors were encountered: