Skip to content

Commit

Permalink
Execute prints to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Apr 21, 2024
1 parent 887ee91 commit 4c6ed2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func Test_rootCmd(t *testing.T) {
}

func Test_Execute(t *testing.T) {
stdout := capturer.CaptureStdout(func() {
stderr := capturer.CaptureOutput(func() {
Execute()
})
assert.Equal(t, rootHelp, stdout, "Execute should print the correct output")
assert.Equal(t, rootHelp, stderr, "Execute should print the correct output to stderr")
}

0 comments on commit 4c6ed2d

Please sign in to comment.