Skip to content

Commit

Permalink
fix: add const test
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanSpeakEasy authored and daveshanley committed Sep 13, 2023
1 parent 58433a6 commit c700c19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datamodel/low/base/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ contentEncoding: fish64
contentMediaType: fish/paste
items: true
examples:
- testing`
- testing
const: tasty`

var rootNode yaml.Node
mErr := yaml.Unmarshal([]byte(testSpec), &rootNode)
Expand All @@ -432,6 +433,7 @@ examples:
assert.Equal(t, "fish/paste", sch.ContentMediaType.Value)
assert.True(t, sch.Items.Value.IsB())
assert.True(t, sch.Items.Value.B)
assert.Equal(t, "tasty", sch.Const.Value)
}

func TestSchema_Build_PropsLookup(t *testing.T) {
Expand Down

0 comments on commit c700c19

Please sign in to comment.