Skip to content

Commit

Permalink
Fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Dec 1, 2024
1 parent a3eac92 commit 44f243d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/handler/mock/serve_fake_content_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mock_test

import (
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
"testing"
Expand All @@ -11,6 +10,7 @@ import (
"github.com/evg4b/uncors/internal/handler/mock"
"github.com/evg4b/uncors/pkg/fakedata"
"github.com/evg4b/uncors/testing/mocks"
"github.com/stretchr/testify/assert"
)

func TestFakeResponse(t *testing.T) {
Expand Down Expand Up @@ -47,7 +47,7 @@ func TestFakeResponse(t *testing.T) {
responseRecorder := httptest.NewRecorder()
handler.ServeHTTP(contracts.WrapResponseWriter(responseRecorder), req)

assert.Equal(t, responseRecorder.Code, http.StatusOK)
assert.Equal(t, http.StatusOK, responseRecorder.Code)
actual := responseRecorder.Body.String()
assert.Equal(t, "{\"hello\":\"At esse ea.\",\"world\":\"Sint ut culpa.\"}\n", actual)
})
Expand All @@ -59,7 +59,7 @@ func TestFakeResponse(t *testing.T) {
responseRecorder := httptest.NewRecorder()
handler.ServeHTTP(contracts.WrapResponseWriter(responseRecorder), req)

assert.Equal(t, responseRecorder.Code, http.StatusOK)
assert.Equal(t, http.StatusOK, responseRecorder.Code)
actual := responseRecorder.Body.String()
assert.Equal(t, "{\"hello\":\"At esse ea.\",\"world\":\"Sint ut culpa.\"}\n", actual)
})
Expand Down

0 comments on commit 44f243d

Please sign in to comment.