feat: add player Names Throughout the Game UI
This commit is contained in:
@@ -98,6 +98,9 @@ static void test_sessions_commands_and_state(void) {
|
||||
assert(response.status == 200U);
|
||||
char player_2_token[33];
|
||||
token_from_response(&response, player_2_token);
|
||||
response = call(&api, HTTP_API_ROUTE_INFO, HTTP_API_GET, NULL, NULL);
|
||||
assert(response.status == 200U && strstr(response.body, "\"player1Name\":\"Alice\"") != NULL &&
|
||||
strstr(response.body, "\"player2Name\":\"Bob\"") != NULL);
|
||||
response = call(&api, HTTP_API_ROUTE_JOIN, HTTP_API_POST,
|
||||
"{\"name\":\"Watch\",\"requestedRole\":\"spectator\"}", NULL);
|
||||
assert(response.status == 200U);
|
||||
|
||||
Reference in New Issue
Block a user