Write test to check basic functionality of UrlBundle::from_root_domain()
This commit is contained in:
parent
d28ccf209a
commit
bae3bc3aef
|
@ -0,0 +1,12 @@
|
||||||
|
use chorus::UrlBundle;
|
||||||
|
#[cfg(target_arch = "wasm32")]
|
||||||
|
use wasm_bindgen_test::*;
|
||||||
|
#[cfg(target_arch = "wasm32")]
|
||||||
|
wasm_bindgen_test_configure!(run_in_browser);
|
||||||
|
|
||||||
|
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
|
||||||
|
#[cfg_attr(not(target_arch = "wasm32"), tokio::test)]
|
||||||
|
async fn test_parse_url() {
|
||||||
|
let url = url::Url::parse("http://localhost:3001/").unwrap();
|
||||||
|
UrlBundle::from_root_domain(url.as_str()).await.unwrap();
|
||||||
|
}
|
Loading…
Reference in New Issue