We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2489f26 commit 74c3803Copy full SHA for 74c3803
1 file changed
autosurgeon/src/reconcile.rs
@@ -1242,14 +1242,16 @@ mod tests {
1242
.transact_with::<_, _, automerge::AutomergeError, _>(
1243
|_| automerge::transaction::CommitOptions::default().with_message("Set Contact Book".to_owned()),
1244
|tx| {
1245
-
1246
- reconcile_prop(tx, automerge::ROOT, "contacts", alice).unwrap();
+ use automerge::{Value, ObjType};
+ let Ok(Some((Value::Object(ObjType::List), id))) = tx.get(&automerge::ROOT, "contacts") else {
1247
+ panic!("unable to get contacts object ID");
1248
+ };
1249
+ reconcile_prop(tx, id, 1_usize, alice).unwrap();
1250
Ok(())
1251
});
1252
let changes = doc.get_changes(&[]).unwrap();
1253
assert_eq!(changes.len(), 2);
1254
1255
assert_doc!(
1256
&doc,
1257
{map! {
0 commit comments