test: fix survey vars

This commit is contained in:
fiftin 2024-05-20 12:38:29 +02:00
parent 4dfab21060
commit 7efee5ead0
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -27,7 +27,7 @@ func TestObjectToJSON3(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()
}
}