修复bug
This commit is contained in:
@@ -112,6 +112,8 @@ int main() {
|
||||
ADMINIVE_CHECK(body_json(client.Get("/rows?perPage=2&page=1&orderBy=score&orderDir=desc")).at("data").at("items").at(0).at("name") == "beta");
|
||||
ADMINIVE_CHECK(body_json(client.Get("/rows?name=alp")).at("data").at("total") == 1);
|
||||
ADMINIVE_CHECK(body_json(client.Get("/rows?enabled=true")).at("data").at("total") == 2);
|
||||
check_status(client.Get("/rows?score=90"), 400);
|
||||
check_status(client.Get("/rows?unknown=value"), 400);
|
||||
check_status(client.Get("/rows?orderBy=enabled&orderDir=asc"), 400);
|
||||
check_status(client.Get("/rows?orderBy=score&orderDir=sideways"), 400);
|
||||
const auto created = body_json(client.Post("/rows", R"({"name":"delta","enabled":true,"score":80})", "application/json"));
|
||||
|
||||
Reference in New Issue
Block a user