Make wasm-bindgen-test a dev dependency
This commit is contained in:
committed by
Sean McArthur
parent
2ca0e26cfa
commit
e7be3eda04
@@ -140,7 +140,6 @@ winreg = "0.7"
|
||||
js-sys = "0.3.45"
|
||||
wasm-bindgen = { version = "0.2.68", features = ["serde-serialize"] }
|
||||
wasm-bindgen-futures = "0.4.18"
|
||||
wasm-bindgen-test = "0.3"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
||||
version = "0.3.25"
|
||||
@@ -157,6 +156,9 @@ features = [
|
||||
"ServiceWorkerGlobalScope",
|
||||
]
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
||||
wasm-bindgen-test = "0.3"
|
||||
|
||||
[[example]]
|
||||
name = "blocking"
|
||||
path = "examples/blocking.rs"
|
||||
|
||||
@@ -299,6 +299,8 @@ impl Config {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use wasm_bindgen_test::*;
|
||||
|
||||
wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
|
||||
@@ -367,3 +369,4 @@ async fn default_headers_clone() {
|
||||
"request headers don't change client defaults"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user