Add more tests and explain some strange quotes.

This commit is contained in:
monopole
2021-01-13 13:03:22 -08:00
parent cf8815b0a0
commit bb41d018b5
11 changed files with 111 additions and 92 deletions

View File

@@ -998,7 +998,7 @@ spec:
return
}
assert.False(t, tc.errorExpected)
assert.NoError(t, m.RemoveIdAnnotations())
m.RemoveIdAnnotations()
yml, err := m.AsYaml()
assert.NoError(t, err)
assert.Equal(t, strings.Join(tc.expected, "---\n"), string(yml))
@@ -1111,7 +1111,7 @@ $patch: delete
assert.NoError(t, err, name)
assert.NoError(t, m.ApplySmPatch(idSet, p), name)
assert.Equal(t, tc.finalMapSize, m.Size(), name)
assert.NoError(t, m.RemoveIdAnnotations())
m.RemoveIdAnnotations()
yml, err := m.AsYaml()
assert.NoError(t, err, name)
assert.Equal(t, tc.expected, string(yml), name)