bitque/jirs-client/tests/wasm.rs
2021-04-16 15:20:25 +02:00

13 lines
314 B
Rust

extern crate wasm_bindgen_test;
use jirs_client::validations::*;
use wasm_bindgen_test::*;
#[wasm_bindgen_test]
fn test_is_token() {
assert_eq!(is_email("foo@"), false);
assert_eq!(is_email("foo@bar"), false);
assert_eq!(is_email("foo@bar."), false);
assert_eq!(is_email("foo@bar.com"), true);
}