None
}
}
#[cfg(test)]
mod tests {
use super::*;
struct Foo;
impl Display for Foo {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
write!(f, "
Foo
")
}
}
impl PageContent for Foo {
fn title(&self) -> String {
"Foo".to_string()
}
}
#[test]
fn page() {
assert_regex_match!(
Foo.page(Arc::new(PageConfig {
chain: Chain::Mainnet,
csp_origin: Some("https://signet.ordinals.com".into()),
domain: Some("signet.ordinals.com".into()),
index_sats: true,
}),),
r"
Foo