(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestRegisterDomain(t *testing.T) { |
| 64 | srv := testServer(t) |
| 65 | code, body := postJSON(t, srv.URL+"/v1/domains", "good", map[string]any{"domain": "new.com"}) |
| 66 | if code != 201 || body["domain"] != "new.com" { |
| 67 | t.Fatalf("want 201 new.com, got %d %v", code, body) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func TestRegisterDomainReserved(t *testing.T) { |
| 72 | srv := testServer(t) |
nothing calls this directly
no test coverage detected