2020-05-01 23:10:54 +02:00
|
|
|
extern crate wasm_bindgen_test;
|
2020-06-10 22:11:51 +02:00
|
|
|
|
2020-05-01 23:10:54 +02:00
|
|
|
use jirs_client::validations::*;
|
2021-04-16 15:20:25 +02:00
|
|
|
use wasm_bindgen_test::*;
|
2020-05-01 23:10:54 +02:00
|
|
|
|
|
|
|
#[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);
|
|
|
|
}
|