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

Added json flag to base request and tests to check for JSON response #123

Merged
merged 2 commits into from
Mar 22, 2016
Merged

Added json flag to base request and tests to check for JSON response #123

merged 2 commits into from
Mar 22, 2016

Conversation

aydrian
Copy link
Contributor

@aydrian aydrian commented Mar 22, 2016

Closes #122

@aydrian aydrian added this to the 2.0.0 Release milestone Mar 22, 2016
};

client.request(options, function(err, data) {
expect(data.body).to.not.be.a('string');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need both !string and ==object?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Belt and suspenders. Also I didn't know if it was like "a function is an object, a string is an object, I'm javascript and I treat everything as an object"

aydrian added a commit that referenced this pull request Mar 22, 2016
Added json flag to base request and tests to check for JSON response
@aydrian aydrian merged commit f16b2bc into SparkPost:wip-2.0.0 Mar 22, 2016
@aydrian aydrian deleted the issue-122 branch March 22, 2016 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants