Coverage bumped again

however, more hardening is required, Asana is getting upset with changes found when rendering, so that's up next. Then, we will need to harden against few others.
This commit is contained in:
Dave Shanley
2023-03-22 10:03:17 -04:00
parent cecee1ca73
commit cd3011655c
5 changed files with 140 additions and 30 deletions

View File

@@ -575,9 +575,10 @@ components:
}
h := NewDocument(lowDoc)
// render the document to YAML and it should be identical.
// render the document to YAML, and it should be identical to the original in size, example ordering isn't
// guaranteed, so we can't compare the strings directly
r, _ := h.Render()
assert.Equal(t, yml, strings.TrimSpace(string(r)))
assert.Len(t, strings.TrimSpace(string(r)), len(strings.TrimSpace(yml)))
}
func TestDocument_MarshalYAML_TestParamRefs(t *testing.T) {