diff --git a/autosurgeon/src/reconcile.rs b/autosurgeon/src/reconcile.rs index 7c55f07..07e7287 100644 --- a/autosurgeon/src/reconcile.rs +++ b/autosurgeon/src/reconcile.rs @@ -1242,14 +1242,15 @@ mod tests { .transact_with::<_, _, automerge::AutomergeError, _>( |_| automerge::transaction::CommitOptions::default().with_message("Set Contact Book".to_owned()), |tx| { - - reconcile_prop(tx, automerge::ROOT, "contacts", alice).unwrap(); - Ok(()) + use automerge::{Value, ObjType}; + let Ok(Some((Value::Object(ObjType::List), id))) = tx.get(&automerge::ROOT, "contacts") else { + panic!("unable to get contacts object ID"); + }; + reconcile_prop(tx, id, 1_usize, alice).unwrap(); }); let changes = doc.get_changes(&[]).unwrap(); assert_eq!(changes.len(), 2); - assert_doc!( &doc, {map! {