diff --git a/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp b/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp index cd94142..e0b94fd 100644 --- a/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp +++ b/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp @@ -158,6 +158,10 @@ BOOST_AUTO_TEST_CASE(AuthRegistrationExecutor_Succesful_Login) BOOST_CHECK(response.result() == http::status::ok); + auto response_body = parse(response.body()); + + BOOST_CHECK(response_body.as_object().count("token"s) == 1); + mysql_session->close(); delete mysql_session; }