lettre = "0.10.1"
comrak = { version = "0.14.0", default-features = false }
+[dev-dependencies]
+reqwest = { workspace = true }
+tokio = { workspace = true, features = ["macros"] }
+
[build-dependencies]
rosetta-build = "0.1.2"
#[serde(rename = "type")]
pub kind: Option<String>,
pub href: Option<Url>,
+ #[serde(default)]
pub properties: HashMap<String, String>,
}
)
};
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use reqwest::Client;
+
+ #[tokio::test]
+ #[ignore]
+ async fn test_webfinger() {
+ let client = Client::default();
+ let fetch_url =
+ "https://kino.schuerz.at/.well-known/webfinger?resource=acct:h0e@kino.schuerz.at";
+
+ let response = client.get(fetch_url).send().await.unwrap();
+
+ let res = response.json::<WebfingerResponse>().await;
+ assert!(res.is_ok());
+ }
+}