Added support for 3.1 docs and variations, as well as removed duplicated descriptions from sample spec.

This commit is contained in:
Dave Shanley
2022-09-26 15:58:32 -04:00
parent ee4aec4cdb
commit e80b640627
4 changed files with 11 additions and 11 deletions

View File

@@ -217,7 +217,7 @@ func TestNewDocument_Components_Headers(t *testing.T) {
initTest()
h := NewDocument(lowDoc)
assert.Len(t, h.Components.Headers, 1)
assert.Equal(t, "this is a header", h.Components.Headers["UseOil"].Description)
assert.Equal(t, "this is a header example for UseOil", h.Components.Headers["UseOil"].Description)
assert.Equal(t, 318, h.Components.Headers["UseOil"].GoLow().Description.ValueNode.Line)
assert.Equal(t, 20, h.Components.Headers["UseOil"].GoLow().Description.ValueNode.Column)
}