mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
test(be): fix tests after survey vars mod
This commit is contained in:
parent
d60e3cf1f4
commit
02b0d60200
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user