(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestGetAppJsonFormat(t *testing.T) { |
| 13 | cmd := test.GetRootCmdWithSubCommands(NewCmds()...) |
| 14 | cmd.SetArgs([]string{"get-app", "--output-format", "json"}) |
| 15 | _, err := cmd.ExecuteC() |
| 16 | require.NoError(t, err) |
| 17 | require.Contains(t, cmd.OutOrStdout().(*bytes.Buffer).String(), "organization") |
| 18 | } |
| 19 | |
| 20 | func TestGetAppUnknownFormat(t *testing.T) { |
| 21 | cmd := test.GetRootCmdWithSubCommands(NewCmds()...) |
nothing calls this directly
no test coverage detected