(t *testing.T)
| 699 | } |
| 700 | |
| 701 | func TestRunItemEdit_InvalidID(t *testing.T) { |
| 702 | defer gock.Off() |
| 703 | // gock.Observe(gock.DumpRequest) |
| 704 | |
| 705 | client := queries.NewTestClient() |
| 706 | config := editItemConfig{ |
| 707 | opts: editItemOpts{ |
| 708 | title: "a title", |
| 709 | titleChanged: true, |
| 710 | body: "a new body", |
| 711 | bodyChanged: true, |
| 712 | itemID: "item_id", |
| 713 | }, |
| 714 | client: client, |
| 715 | } |
| 716 | |
| 717 | err := runEditItem(config) |
| 718 | assert.Error(t, err, "ID must be the ID of the draft issue content which is prefixed with `DI_`") |
| 719 | } |
| 720 | |
| 721 | func TestRunItemEdit_Clear(t *testing.T) { |
| 722 | defer gock.Off() |
nothing calls this directly
no test coverage detected