Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions cli/command/image/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,6 @@ func TestPrintImageTreeAnsiTty(t *testing.T) {
}
}

func TestPrintImageTreeNoWarningWhenRedirected(t *testing.T) {
cli := test.NewFakeCli(nil)
cli.Out().SetIsTerminal(false)
cli.Err().SetIsTerminal(false)

printImageTree(cli, treeView{images: []topImage{}})

errOut := cli.ErrBuffer().String()
assert.Check(t, !strings.Contains(errOut, "WARNING: This output is designed for human readability"), "stderr should not contain warning when output is redirected, got: %s", errOut)
}

func TestPrintImageTreeGolden(t *testing.T) {
testCases := []struct {
name string
Expand Down