#[cfg(not(target_arch = "wasm32"))]
pub use tokio::test;
#[cfg(target_arch = "wasm32")]
pub use wasm_bindgen_test::wasm_bindgen_test as test;
#[cfg(target_arch = "wasm32")]
use wasm_bindgen_test::wasm_bindgen_test_configure;
#[cfg(target_arch = "wasm32")]
wasm_bindgen_test_configure!(run_in_browser);
#[cfg(not(target_arch = "wasm32"))]
pub fn client() -> hyper::Client<
hyper_tls::HttpsConnector<hyper::client::connect::HttpConnector>,
hyper::body::Body,
> {
let https = hyper_tls::HttpsConnector::new();
hyper::Client::builder().build(https)
}
#[cfg(target_arch = "wasm32")]
pub fn client() -> web_sys::Window {
web_sys::window().expect("no window found; not running inside a browser?")
}
pub fn server() -> &'static str {
option_env!("HTTPC_TEST_SERVER").expect("HTTPC_TEST_SERVER environment variable not found")
}