Skip to content

Commit

Permalink
style: refactor codebase for consistency and improved test coverage
Browse files Browse the repository at this point in the history
- Reorder arguments in `assert.Equal` calls for consistency

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Jan 12, 2025
1 parent bc23737 commit 807284b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gzip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ func TestGzipWithDecompressOnly(t *testing.T) {
w := httptest.NewRecorder()
r.ServeHTTP(w, req)

assert.Equal(t, w.Code, 200)
assert.Equal(t, w.Header().Get(headerContentEncoding), "")
assert.Equal(t, w.Body.String(), testResponse)
assert.Equal(t, 200, w.Code)
assert.Equal(t, "", w.Header().Get(headerContentEncoding))
assert.Equal(t, testResponse, w.Body.String())
}

func TestCustomShouldCompressFn(t *testing.T) {
Expand Down

0 comments on commit 807284b

Please sign in to comment.