Skip to content

Commit

Permalink
Adapt unit test for version endpoint with api version
Browse files Browse the repository at this point in the history
  • Loading branch information
sulksamino authored and alerei committed Mar 25, 2024
1 parent 3b16d11 commit 121cf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flecs/modules/version/test/test_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ TEST(module_version, print_version)
auto req = crow::request{};
auto res = crow::response{};

const auto json_expected = flecs::json_t({{"core", FLECS_VERSION + "-"s + FLECS_GIT_SHA}});
const auto json_expected = flecs::json_t({{"core", FLECS_VERSION + "-"s + FLECS_GIT_SHA}, {"api", FLECS_API_VERSION}});

req.url = "/v2/system/version";
flecs::flecs_api_t::instance().app().handle(req, res);
Expand Down

0 comments on commit 121cf12

Please # to comment.