Skip to content

Commit

Permalink
refactor(e2e): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
olexsmir committed Jul 22, 2024
1 parent 202acf3 commit 3f9bf74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/apiv1_note_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ func (e *AppTestSuite) TestNoteV1_Create_unauthorized() {
{
name: "empty request",
inp: apiv1NoteCreateRequest{},
assert: func(r *httptest.ResponseRecorder, inp apiv1NoteCreateRequest) {
assert: func(r *httptest.ResponseRecorder, _ apiv1NoteCreateRequest) {
e.Equal(r.Code, http.StatusBadRequest)
},
},
{
name: "content only",
inp: apiv1NoteCreateRequest{Content: e.uuid()},
assert: func(r *httptest.ResponseRecorder, inp apiv1NoteCreateRequest) {
assert: func(r *httptest.ResponseRecorder, _ apiv1NoteCreateRequest) {
e.Equal(r.Code, http.StatusCreated)

var body apiv1NoteCreateResponse
Expand All @@ -59,7 +59,7 @@ func (e *AppTestSuite) TestNoteV1_Create_unauthorized() {
var body apiv1NoteCreateResponse
e.readBodyAndUnjsonify(r.Body, &body)

dbNote := e.getNoteFromDBbySlug(body.Slug)
dbNote := e.getNoteFromDBbySlug(inp.Slug)
e.NotEmpty(dbNote)
},
},
Expand Down Expand Up @@ -97,7 +97,7 @@ func (e *AppTestSuite) TestNoteV1_Create_authorized() {
"i can't be used, please implement this freaking logic")
}

type apiv1NoteGetResponse struct{}
type apiv1NoteGetResponse struct{} //nolint:unused

func (e *AppTestSuite) TestNoteV1_Get() {
e.T().Skip()
Expand Down

0 comments on commit 3f9bf74

Please sign in to comment.