Skip to content

Commit

Permalink
fixing tests of formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
saniales committed Oct 16, 2017
1 parent daee596 commit d5ac256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/formatter/print_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ func ExamplePrint_alternative() {

func ExamplePrintError() {
formatter.SetFormatter("text")
formatter.PrintError(errors.New("text error"))
formatter.PrintError(errors.New("text error"), "text error")
formatter.SetFormatter("json")
formatter.PrintError(errors.New("json error"))
formatter.PrintError(errors.New("json error"), "json error")

// Output:
// text error
Expand Down

0 comments on commit d5ac256

Please sign in to comment.