);
}
#[test]
fn block_not_found() {
TestServer::new().assert_response(
"/block/467a86f0642b1d284376d13a98ef58310caa49502b0f9a560ee222e0a122fe16",
StatusCode::NOT_FOUND,
"block 467a86f0642b1d284376d13a98ef58310caa49502b0f9a560ee222e0a122fe16 not found",
);
}
#[test]
fn unmined_sat() {
TestServer::new().assert_response_regex(
"/sat/0",
StatusCode::OK,
".*<dt>timestamp</dt><dd><time>2009-01-03 18:15:05 UTC</time></dd>.*",
);
}
#[test]
fn mined_sat() {
TestServer::new().assert_response_regex(
"/sat/5000000000",
StatusCode::OK,
".*<dt>timestamp</dt><dd><time>.*</time> \\(expected\\)</dd>.*",
);
}
#[test]
fn static_asset() {
TestServer::new().assert_response_regex(
"/static/index.css",
StatusCode::OK,
r".*\.rare \{
background-color: var\(--rare\);
}.*",
);
}
#[test]
fn favicon() {
TestServer::new().assert_response_regex("/favicon.ico", StatusCode::OK, r".*");
}
#[test]