(t *testing.T)
| 759 | } |
| 760 | |
| 761 | func TestRunItemEdit_InvalidID(t *testing.T) { |
| 762 | defer gock.Off() |
| 763 | // gock.Observe(gock.DumpRequest) |
| 764 | |
| 765 | client := queries.NewTestClient() |
| 766 | config := editItemConfig{ |
| 767 | opts: editItemOpts{ |
| 768 | title: "a title", |
| 769 | titleChanged: true, |
| 770 | body: "a new body", |
| 771 | bodyChanged: true, |
| 772 | itemID: "item_id", |
| 773 | }, |
| 774 | client: client, |
| 775 | } |
| 776 | |
| 777 | err := runEditItem(config) |
| 778 | assert.Error(t, err, "ID must be the ID of the draft issue content which is prefixed with `DI_`") |
| 779 | } |
| 780 | |
| 781 | func TestRunItemEdit_Clear(t *testing.T) { |
| 782 | defer gock.Off() |
nothing calls this directly
no test coverage detected