Add truthy_falsy tests to main.rs

This commit is contained in:
Thomas den Hollander 2019-08-08 09:17:38 +02:00
parent 0ee7236698
commit 8b99fdc745
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ pub mod rethrow;
pub mod simple;
pub mod slice;
pub mod structural;
pub mod truthy_falsy;
pub mod u64;
pub mod validate_prt;
pub mod variadic;

View File

@ -1,3 +1,6 @@
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
#[wasm_bindgen_test]
fn test_is_truthy() {
assert_eq!(JsValue::from(0).is_truthy(), false);