mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-17 02:42:13 +00:00
fix test
This commit is contained in:
parent
a32d2553fc
commit
70480ad29d
@ -132,6 +132,8 @@ fn from_entries() {
|
|||||||
entry_one.push(&"bar".into());
|
entry_one.push(&"bar".into());
|
||||||
entry_two.push(&"baz".into());
|
entry_two.push(&"baz".into());
|
||||||
entry_two.push(&42.into());
|
entry_two.push(&42.into());
|
||||||
|
array.push(&entry_one);
|
||||||
|
array.push(&entry_two);
|
||||||
let object = Object::from_entries(&array).unwrap();
|
let object = Object::from_entries(&array).unwrap();
|
||||||
|
|
||||||
assert_eq!(Reflect::get(object.as_ref(), &"foo".into()).unwrap(), "bar");
|
assert_eq!(Reflect::get(object.as_ref(), &"foo".into()).unwrap(), "bar");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user