test(be): fix tests after survey vars mod

This commit is contained in:
Denis Gukov 2022-01-19 17:53:58 +05:00
parent d60e3cf1f4
commit 02b0d60200

View File

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