Skip to content

Commit

Permalink
Apply Alex's patch
Browse files Browse the repository at this point in the history
  • Loading branch information
issackelly committed Dec 1, 2022
1 parent 2489f26 commit 74c3803
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions autosurgeon/src/reconcile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1242,14 +1242,16 @@ 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();
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();
Ok(())
});
let changes = doc.get_changes(&[]).unwrap();
assert_eq!(changes.len(), 2);


assert_doc!(
&doc,
{map! {
Expand Down

0 comments on commit 74c3803

Please sign in to comment.