(t *testing.T)
| 276 | } |
| 277 | |
| 278 | func TestJSONProjectDraftIssue(t *testing.T) { |
| 279 | item := DraftIssue{} |
| 280 | item.ID = "123" |
| 281 | item.Title = "title" |
| 282 | item.Body = "a body" |
| 283 | |
| 284 | b, err := json.Marshal(item.ExportData(nil)) |
| 285 | assert.NoError(t, err) |
| 286 | |
| 287 | assert.JSONEq(t, `{"id":"123","title":"title","body":"a body","type":"DraftIssue"}`, string(b)) |
| 288 | } |
| 289 | |
| 290 | func TestJSONProjectItem_DraftIssue_ProjectV2ItemFieldIterationValue(t *testing.T) { |
| 291 | iterationField := ProjectField{TypeName: "ProjectV2IterationField"} |
nothing calls this directly
no test coverage detected