Skip to content

Commit

Permalink
test: API Empty TX Object Response (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepdefic1t authored and faustbrian committed May 8, 2019
1 parent a068603 commit 6858d9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit 6858d9b

Please sign in to comment.