Building out extraction and location code.

adding tests to extactraction functions.

Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
Dave Shanley
2022-08-27 13:21:20 -04:00
parent 51e1f62b04
commit 61a1317ffd
3 changed files with 79 additions and 7 deletions

View File

@@ -316,9 +316,9 @@ func TestCreateDocument_Components_Schemas(t *testing.T) {
assert.NotNil(t, components)
assert.Len(t, components.Schemas.Value, 6)
burger := components.FindSchema("Burger")
assert.NotNil(t, burger.Value)
assert.Equal(t, "The tastiest food on the planet you would love to eat everyday", burger.Value.Schema().Description.Value)
burger := components.FindSchema("Burger").Value
assert.NotNil(t, burger)
assert.Equal(t, "The tastiest food on the planet you would love to eat everyday", burger.Schema().Description.Value)
er := components.FindSchema("Error")
assert.NotNil(t, er.Value)