(id string, discussionsEnabled bool)
| 2341 | } |
| 2342 | |
| 2343 | func repoMetaResp(id string, discussionsEnabled bool) string { |
| 2344 | return fmt.Sprintf(`{ |
| 2345 | "data": { |
| 2346 | "repository": { |
| 2347 | "id": %q, |
| 2348 | "databaseId": 982069338, |
| 2349 | "hasDiscussionsEnabled": %t |
| 2350 | } |
| 2351 | } |
| 2352 | }`, id, discussionsEnabled) |
| 2353 | } |
| 2354 | |
| 2355 | func TestCreate(t *testing.T) { |
| 2356 | repo := ghrepo.New("OWNER", "REPO") |
no outgoing calls
no test coverage detected