Fixed broken test for breaking changes.

Looking good now.
This commit is contained in:
Dave Shanley
2022-10-10 12:21:02 -04:00
parent 61beb3ea2a
commit a819f9ea29

View File

@@ -668,7 +668,7 @@ func TestCompareSchemas_AllOfModifyAndAddItem(t *testing.T) {
changes := CompareSchemas(lSchemaProxy, rSchemaProxy)
assert.NotNil(t, changes)
assert.Equal(t, 2, changes.TotalChanges())
assert.Equal(t, 1, changes.TotalBreakingChanges())
assert.Equal(t, 2, changes.TotalBreakingChanges())
assert.Equal(t, ObjectAdded, changes.Changes[0].ChangeType)
assert.Equal(t, v3.AllOfLabel, changes.Changes[0].Property)
assert.Equal(t, Modified, changes.AllOfChanges[0].Changes[0].ChangeType)