diff --git a/CHANGELOG.md b/CHANGELOG.md index f694a020..edd3a622 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/test/http/http.cpp b/test/http/http.cpp index 9d0a199e..24365ec1 100644 --- a/test/http/http.cpp +++ b/test/http/http.cpp @@ -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.