Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
bitomaxsp authored and daveshanley committed Aug 25, 2023
1 parent 6c24cd5 commit 9daaecc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datamodel/low/base/schema_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ description: something`
var idxNode yaml.Node
_ = yaml.Unmarshal([]byte(yml), &idxNode)

err := sch.Build(nil, idxNode.Content[0], nil)
err := sch.Build(&idxNode, idxNode.Content[0], nil)
assert.NoError(t, err)

assert.Equal(t, "db2a35dd6fb3d9481d0682571b9d687616bb2a34c1887f7863f0b2e769ca7b23",
low.GenerateHashString(&sch))

assert.Equal(t, "something", sch.Schema().Description.Value)
assert.Empty(t, sch.GetSchemaReference())
assert.NotNil(t, sch.GetKeyNode())
assert.NotNil(t, sch.GetValueNode())
assert.False(t, sch.IsSchemaReference())
assert.False(t, sch.IsReference())
Expand Down

0 comments on commit 9daaecc

Please sign in to comment.