(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestValidatorValid(t *testing.T) { |
| 83 | b := NewBody() |
| 84 | tf := Bind(validator("my@string"), NewTextField(b)) |
| 85 | b.AssertRender(t, "bind/validator-valid", func() { |
| 86 | tf.SendChange() // trigger validation |
| 87 | }) |
| 88 | } |
| 89 | |
| 90 | func TestValidatorInvalid(t *testing.T) { |
| 91 | b := NewBody() |
nothing calls this directly
no test coverage detected