(t *testing.T)
| 165 | } |
| 166 | |
| 167 | func TestVerifyDomainSuccess(t *testing.T) { |
| 168 | srv := testServer(t) |
| 169 | code, body := postJSON(t, srv.URL+"/v1/domains/fresh.com/verify", "good", nil) |
| 170 | if code != 200 || body["verified"] != true { |
| 171 | t.Fatalf("want 200 verified, got %d %v", code, body) |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | func TestVerifyDomainNotFound(t *testing.T) { |
| 176 | srv := testServer(t) |
nothing calls this directly
no test coverage detected