Removed the ModifiedAndRemoved and Moved change types from the library.

They are not useful and will create a lot of noise, The context will always be available, but changes in context will not result in a recorded change.

Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
Dave Shanley
2022-10-02 12:38:28 -04:00
parent 60da35e8b5
commit 9775c384f7
7 changed files with 116 additions and 219 deletions

View File

@@ -213,9 +213,7 @@ email: dave@quobix.com`
// compare.
extChanges := CompareContact(&lDoc, &rDoc)
assert.Equal(t, 2, extChanges.TotalChanges())
assert.Equal(t, Moved, extChanges.Changes[0].ChangeType)
assert.Equal(t, ModifiedAndMoved, extChanges.Changes[1].ChangeType)
assert.Equal(t, 1, extChanges.TotalChanges())
}
func TestCompareContact_Identical(t *testing.T) {