(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func Test_runUpdateCmd_outputJSON(t *testing.T) { |
| 95 | srv := newServer(t) |
| 96 | defer srv.Close() |
| 97 | |
| 98 | opts, out := newOpts(t, srv, false, "json") |
| 99 | require.NoError(t, runUpdateCmd(opts)) |
| 100 | |
| 101 | got := out.String() |
| 102 | assert.Contains(t, got, `"id":"APP1"`) |
| 103 | assert.Contains(t, got, `"name":"Renamed App"`) |
| 104 | } |
| 105 | |
| 106 | func TestNewUpdateCmd(t *testing.T) { |
| 107 | f, _ := test.NewFactory(false, nil, nil, "") |
nothing calls this directly
no test coverage detected