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

test: API Empty TX Object Response #85

Merged
merged 11 commits into from
May 8, 2019
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

- use "statusCode" '422' to test API Post response for empty Transactions objects.

## [1.2.0] - 2019-02-16
## [1.2.0-arduino] - 2019-02-16

Expand Down
2 changes: 1 addition & 1 deletion test/http/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TEST(api, test_http_post_json) { // NOLINT

// Test JSON object for the "message" key.
// The correct response will include the following
ASSERT_STREQ("child \"transactions\" fails because [\"transactions\" must contain at least 1 items]", obj["message"]);
ASSERT_EQ(422, obj["statusCode"]);
}

// This tests the use of "http://" in single-line HTTP requests.
Expand Down