Skip to content

Commit

Permalink
Document colors support
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Mar 10, 2023
1 parent 3638141 commit 14a00a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .spelling
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
auth
chainable
color
config
datetime
dialer
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Workflow:
* Failures are reported using [`testify`](https://github.com/stretchr/testify/) (`assert` or `require` package) or standard `testing` package.
* JSON values are pretty-printed using `encoding/json`, Go values are pretty-printed using [`litter`](https://github.com/sanity-io/litter).
* Dumping requests and responses in various formats, using [`httputil`](https://golang.org/pkg/net/http/httputil/), [`http2curl`](https://github.com/moul/http2curl), or simple compact logger.
* Color support using [`fatih/color`](github.com/fatih/color).

##### Tuning

Expand Down Expand Up @@ -799,6 +800,9 @@ e := httpexpect.WithConfig(httpexpect.Config{
Formatter: &httpexpect.DefaultFormatter{
DisablePaths: true,
DisableDiffs: true,
FloatFormat: httpexpect.FloatFormatScientific,
ColorMode: httpexpect.ColorModeNever,
LineWidth: 80,
},
})

Expand Down

0 comments on commit 14a00a3

Please sign in to comment.