Skip to content

Commit

Permalink
Update pkg/codegen/pcl/binder_schema_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Wahbe <ian@wahbe.com>
  • Loading branch information
aq17 and iwahbe committed Dec 1, 2022
1 parent 860b80c commit 76195c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/codegen/pcl/binder_schema_test.go
Expand Up @@ -49,7 +49,7 @@ func TestGenEnum(t *testing.T) {
d = GenEnum(enum, &model.LiteralValueExpression{
Value: cty.StringVal("Bar"),
}, safeEnumFunc, unsafeEnumFunc)
assert.Equal(t, d.Summary, "\"Bar\" is not a valid value of the enum \"my:enum\"")
assert.Equal(t, d.Detail, "Valid members are \"foo\", \"bar\"")
assert.Equal(t, d.Summary, `"Bar" is not a valid value of the enum "my:enum"`)
assert.Equal(t, d.Detail, `Valid members are "foo", "bar"`)

}

0 comments on commit 76195c1

Please sign in to comment.