diff options
Diffstat (limited to 'tests/test_config.c')
-rw-r--r-- | tests/test_config.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_config.c b/tests/test_config.c index 5e052a3..8d21d62 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -25,11 +25,14 @@ static void config_read_normal(void **state) const char *path = "../tests/fixtures/normal.ini"; struct config *cfg = config_read(path); assert_non_null(cfg); - assert_string_equal(cfg->endpoint, "https://api.github.com/graphql"); - assert_string_equal(cfg->token, "ghp_1234567890abcdef"); - assert_string_equal(cfg->user_agent, "user-agent"); - assert_string_equal(cfg->owner, "my-org"); assert_string_equal(cfg->git_base, "/srv/git"); + + assert_non_null(cfg->head); + assert_string_equal(cfg->head->endpoint, "https://api.github.com/graphql"); + assert_string_equal(cfg->head->token, "ghp_1234567890abcdef"); + assert_string_equal(cfg->head->user_agent, "user-agent"); + assert_string_equal(cfg->head->owner, "my-org"); + config_free(cfg); } int main(void) |