automerge/automerge-frontend/tests/test_wasm.rs
2021-07-13 16:27:48 +01:00

15 lines
502 B
Rust

use wasm_bindgen_test::*;
#[wasm_bindgen_test]
fn test_simple_frontend_change_with_set_sequence() {
let mut f = automerge_frontend::Frontend::new_with_timestamper(Box::new(|| None));
f.change::<_, _, automerge_frontend::InvalidChangeRequest>(None, |doc| {
doc.add_change(automerge_frontend::LocalChange::set(
automerge_frontend::Path::root().key(""),
automerge_frontend::Value::List(vec![]),
))
.unwrap();
Ok(())
})
.unwrap();
}