(t *testing.T)
| 270 | } |
| 271 | |
| 272 | func TestRunOpenCmd_ListIncludesBothKinds(t *testing.T) { |
| 273 | io, _, stdout, _ := iostreams.Test() |
| 274 | |
| 275 | opts, _, _ := newTestOptions(io, test.NewDefaultConfigStub()) |
| 276 | opts.List = true |
| 277 | |
| 278 | err := runOpenCmd(opts) |
| 279 | require.NoError(t, err) |
| 280 | |
| 281 | out := stdout.String() |
| 282 | assert.Contains(t, out, "docs") |
| 283 | assert.Contains(t, out, "billing") |
| 284 | } |
| 285 | |
| 286 | func TestRunOpenCmd_ListJSONOutput(t *testing.T) { |
| 287 | t.Setenv("ALGOLIA_APPLICATION_ID", "") |
nothing calls this directly
no test coverage detected