test: fix test

This commit is contained in:
fiftin 2024-05-20 14:07:28 +02:00
parent 53dc67bff1
commit 599cd15ab3
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -8,7 +8,7 @@ func TestObjectToJSON(t *testing.T) {
Title: "Test",
}
s := ObjectToJSON(v)
if s == nil || *s != "{\"name\":\"test\",\"title\":\"Test\",\"required\":false,\"type\":\"\",\"description\":\"\"}" {
if s == nil || *s != "{\"name\":\"test\",\"title\":\"Test\",\"required\":false,\"type\":\"\",\"description\":\"\",\"values\":null}" {
t.Fail()
}
}