Fix yew-validation tests (#1479)

This commit is contained in:
Justin Starry 2020-08-15 22:04:41 +08:00 committed by GitHub
parent cfaa37fd35
commit 28dd837534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 19 deletions

View File

@ -43,5 +43,4 @@ set -x
(cd yew-components && cargo test)
(cd yew-validation \
&& cargo test --target wasm32-unknown-unknown --features wasm_test)
(cd yew-validation && cargo test)

View File

@ -10,14 +10,3 @@ description = "Utilities for Yew to validate tag names and attributes"
repository = "https://github.com/yewstack/yew"
[dependencies]
wasm-bindgen = { version = "0.2.58", optional = true }
# Compat with building yew with wasm-pack support.
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dependencies]
wasm-bindgen = "0.2.58"
[dev-dependencies]
wasm-bindgen-test = "0.3.9"
[features]
wasm_test = []

View File

@ -149,12 +149,6 @@ pub fn is_valid_sgml_tag(tag: &str) -> bool {
mod tests {
use super::*;
#[cfg(feature = "wasm_test")]
use wasm_bindgen_test::{wasm_bindgen_test as test, wasm_bindgen_test_configure};
#[cfg(feature = "wasm_test")]
wasm_bindgen_test_configure!(run_in_browser);
#[test]
fn valid_custom_element() {
assert_eq!(is_valid_html_custom_element_name("foo-bar"), true);