(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestRegisterDomainInvalid(t *testing.T) { |
| 81 | srv := testServer(t) |
| 82 | code, body := postJSON(t, srv.URL+"/v1/domains", "good", map[string]any{"domain": "nodot"}) |
| 83 | if code != 400 || errCode(body) != "invalid_domain" { |
| 84 | t.Fatalf("want 400 invalid_domain, got %d %v", code, body) |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | func TestRegisterDomainOverCap(t *testing.T) { |
| 89 | srv := testServer(t) |
nothing calls this directly
no test coverage detected