From cd0e20ef7dcc5ee12a8fe8802cc8bf236c265fc3 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Sun, 14 Apr 2024 20:14:39 +0100 Subject: [PATCH] style: clang-format --- test/utils/log/ApiLoggerTest.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/utils/log/ApiLoggerTest.cpp b/test/utils/log/ApiLoggerTest.cpp index 44ec3410..4501ef1b 100644 --- a/test/utils/log/ApiLoggerTest.cpp +++ b/test/utils/log/ApiLoggerTest.cpp @@ -14,7 +14,8 @@ namespace UKControllerPluginUtilsTest::Api { TEST_F(ApiLoggerTest, ItLogsSync) { - const nlohmann::json expectedPayload = {{"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; + const nlohmann::json expectedPayload = { + {"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.Log("type", "message"); @@ -24,7 +25,10 @@ namespace UKControllerPluginUtilsTest::Api { { const nlohmann::json metadata = {{"key", "value"}}; const nlohmann::json expectedPayload = { - {"type", "type"}, {"message", "message"}, {"metadata", metadata.dump()}, {"plugin_version", "#VERSION_STRING#"}}; + {"type", "type"}, + {"message", "message"}, + {"metadata", metadata.dump()}, + {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.Log("type", "message", metadata); @@ -32,7 +36,8 @@ namespace UKControllerPluginUtilsTest::Api { TEST_F(ApiLoggerTest, ItLogsAsync) { - const nlohmann::json expectedPayload = {{"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; + const nlohmann::json expectedPayload = { + {"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.LogAsync("type", "message"); @@ -42,7 +47,10 @@ namespace UKControllerPluginUtilsTest::Api { { const nlohmann::json metadata = {{"key", "value"}}; const nlohmann::json expectedPayload = { - {"type", "type"}, {"message", "message"}, {"metadata", metadata.dump()}, {"plugin_version", "#VERSION_STRING#"}}; + {"type", "type"}, + {"message", "message"}, + {"metadata", metadata.dump()}, + {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.LogAsync("type", "message", metadata);