summaryrefslogtreecommitdiff
path: root/tests/unit/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-03-10 14:20:43 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-03-12 20:37:48 +0100
commit7ad3c1979c43ca823b16216616be7924df790747 (patch)
treeb8dac1a7a0b9951c00dca6d2f2ca0c8820d9110d /tests/unit/plugins
parent99f0a2e002bd719d3ecac4b631b8cea68a8f0a6e (diff)
downloadweechat-7ad3c1979c43ca823b16216616be7924df790747.zip
tests/relay/api: add buffer id in test of buffer to json function (issue #2081)
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r--tests/unit/plugins/relay/api/test-relay-api-msg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/plugins/relay/api/test-relay-api-msg.cpp b/tests/unit/plugins/relay/api/test-relay-api-msg.cpp
index 2fee7d763..6d5c45031 100644
--- a/tests/unit/plugins/relay/api/test-relay-api-msg.cpp
+++ b/tests/unit/plugins/relay/api/test-relay-api-msg.cpp
@@ -132,6 +132,7 @@ TEST(RelayApiMsg, BufferToJson)
json = relay_api_msg_buffer_to_json (gui_buffers, 0, 0, RELAY_API_COLORS_ANSI);
CHECK(json);
CHECK(cJSON_IsObject (json));
+ WEE_CHECK_OBJ_NUM(gui_buffers->id, json, "id");
WEE_CHECK_OBJ_STR("core.weechat", json, "name");
WEE_CHECK_OBJ_STR("weechat", json, "short_name");
WEE_CHECK_OBJ_NUM(1, json, "number");