bitque/jirs-client/tests/wasm.rs
2020-06-10 22:11:51 +02:00

14 lines
315 B
Rust

extern crate wasm_bindgen_test;
use wasm_bindgen_test::*;
use jirs_client::validations::*;
#[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);
}