19 lines
712 B
C++
19 lines
712 B
C++
// Route: GET / (index, template inheritance, coverage matrix)
|
|||
|
|
#include "support/Assert.hpp"
|
||
|
|
|
||
|
|
using namespace molo::example::test;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
Fixture f;
|
||
|
|
auto res = f.client->get("/");
|
||
|
|
check(res.status == 200, "status 200");
|
||
|
|
check(contains(res.headers.get("Content-Type"), "text/html"),
|
||
|
|
"html content type");
|
||
|
|
check(contains(res.body, "Living example"), "matrix heading");
|
||
|
|
check(contains(res.body, "/routing/hello/world"), "matrix links a route");
|
||
|
|
check(contains(res.body, "viewport"), "responsive viewport meta");
|
||
|
|
check(contains(res.body, "nav-narrow"), "narrow nav dropdown present");
|
||
|
|
check(res.headers.has("X-Request-ID"), "request id middleware ran");
|
||
|
|
return finish("index");
|
||
|
|
}
|