1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

relay/api: add field "modes" in GET /api/buffers

This commit is contained in:
Sébastien Helleu
2024-05-12 09:48:04 +02:00
parent dcb8fcb6ed
commit 3bfb7d7f04
3 changed files with 5 additions and 0 deletions
@@ -432,6 +432,7 @@ TEST(RelayApiProtocolWithClient, CbBuffers)
WEE_CHECK_OBJ_NUM(1, json, "number");
WEE_CHECK_OBJ_STR("formatted", json, "type");
WEE_CHECK_OBJ_STRN("WeeChat", 7, json, "title");
WEE_CHECK_OBJ_STR("", json, "modes");
WEE_CHECK_OBJ_STR("", json, "input_prompt");
WEE_CHECK_OBJ_STR("", json, "input");
WEE_CHECK_OBJ_NUM(0, json, "input_position");
@@ -458,6 +459,7 @@ TEST(RelayApiProtocolWithClient, CbBuffers)
WEE_CHECK_OBJ_NUM(1, json, "number");
WEE_CHECK_OBJ_STR("formatted", json, "type");
WEE_CHECK_OBJ_STRN("WeeChat", 7, json, "title");
WEE_CHECK_OBJ_STR("", json, "modes");
WEE_CHECK_OBJ_STR("test_prompt", json, "input_prompt");
WEE_CHECK_OBJ_STR("test", json, "input");
WEE_CHECK_OBJ_NUM(4, json, "input_position");
@@ -485,6 +487,7 @@ TEST(RelayApiProtocolWithClient, CbBuffers)
WEE_CHECK_OBJ_NUM(1, json, "number");
WEE_CHECK_OBJ_STR("formatted", json, "type");
WEE_CHECK_OBJ_STRN("WeeChat", 7, json, "title");
WEE_CHECK_OBJ_STR("", json, "modes");
WEE_CHECK_OBJ_STR("", json, "input_prompt");
WEE_CHECK_OBJ_STR("", json, "input");
WEE_CHECK_OBJ_NUM(0, json, "input_position");