mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Fix yew-validation tests (#1479)
This commit is contained in:
parent
cfaa37fd35
commit
28dd837534
@ -43,5 +43,4 @@ set -x
|
|||||||
|
|
||||||
(cd yew-components && cargo test)
|
(cd yew-components && cargo test)
|
||||||
|
|
||||||
(cd yew-validation \
|
(cd yew-validation && cargo test)
|
||||||
&& cargo test --target wasm32-unknown-unknown --features wasm_test)
|
|
||||||
|
|||||||
@ -10,14 +10,3 @@ description = "Utilities for Yew to validate tag names and attributes"
|
|||||||
repository = "https://github.com/yewstack/yew"
|
repository = "https://github.com/yewstack/yew"
|
||||||
|
|
||||||
[dependencies]
|
[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 = []
|
|
||||||
|
|||||||
@ -149,12 +149,6 @@ pub fn is_valid_sgml_tag(tag: &str) -> bool {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
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]
|
#[test]
|
||||||
fn valid_custom_element() {
|
fn valid_custom_element() {
|
||||||
assert_eq!(is_valid_html_custom_element_name("foo-bar"), true);
|
assert_eq!(is_valid_html_custom_element_name("foo-bar"), true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user