assert_eq!(
server.acme_domains().unwrap(),
&[System::new().host_name().unwrap()]
);
}
#[test]
fn acme_domain_flag_is_respected() {
let (_, server) = parse_server_args("ord server --acme-domain example.com");
assert_eq!(server.acme_domains().unwrap(), &["example.com"]);
}
#[test]
fn install_sh_redirects_to_github() {
TestServer::new().assert_redirect(
"/install.sh",
"https://raw.githubusercontent.com/ordinals/ord/master/install.sh",
);
}
#[test]
fn ordinal_redirects_to_sat() {
TestServer::new().assert_redirect("/ordinal/0", "/sat/0");
}
#[test]
fn bounties_redirects_to_docs_site() {
TestServer::new().assert_redirect("/bounties", "https://docs.ordinals.com/bounty/");
}
#[test]
fn faq_redirects_to_docs_site() {
TestServer::new().assert_redirect("/faq", "https://docs.ordinals.com/faq/");
}
#[test]
fn search_by_query_returns_sat() {
TestServer::new().assert_redirect("/search?query=0", "/sat/0");
}
#[test]