Closed gmaclennan closed 9 years ago
Here's a failing test:
Sorry I don't really know chai, but raw_url should be a url, but it is undefined.
Thanks! You should be able to use raw.url
instead of raw_url
. This conversion is a result of adding support for GitHub's Hypermedia (details in the Repo Readme).
There should probably be an option for turning off the JSON conversion in future versions of this client.
Aha! I had missed that part of the readme. It makes sense now.
octo.gists(gist_id).fetch()
returns incorrectly parsed json fordata.files
:This should be
raw_url
but it looks like somehow it is getting parsed.read()
returns the correct unparsed json string.