style: gofmt
This commit is contained in:
@@ -48,7 +48,9 @@ func TestFieldTriggerSmoke(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
trig := func(body string) string { return base + " notes:\n type: textarea\n trigger:\n" + body }
|
||||
trig := func(body string) string {
|
||||
return base + " notes:\n type: textarea\n trigger:\n" + body
|
||||
}
|
||||
for _, tc := range []struct{ name, fields, want string }{
|
||||
{"unknown action", trig(" action: show\n field: is_admin\n condition: checked\n"), "action show is not supported"},
|
||||
{"unknown condition", trig(" action: hide\n field: is_admin\n condition: value[1]\n"), "condition value[1] is not supported"},
|
||||
|
||||
Reference in New Issue
Block a user