mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 06:21:36 +03:00
24 lines
482 B
Rust
24 lines
482 B
Rust
|
use wasm_bindgen::JsValue;
|
||
|
use wasm_bindgen_test::*;
|
||
|
use js_sys::*;
|
||
|
|
||
|
// TODO: not much you can do with `MapIterator` types yet :(
|
||
|
|
||
|
#[wasm_bindgen_test]
|
||
|
fn entries() {
|
||
|
let map = Map::new();
|
||
|
assert!(JsValue::from(map.entries()).is_object());
|
||
|
}
|
||
|
|
||
|
#[wasm_bindgen_test]
|
||
|
fn keys() {
|
||
|
let map = Map::new();
|
||
|
assert!(JsValue::from(map.keys()).is_object());
|
||
|
}
|
||
|
|
||
|
#[wasm_bindgen_test]
|
||
|
fn values() {
|
||
|
let map = Map::new();
|
||
|
assert!(JsValue::from(map.values()).is_object());
|
||
|
}
|