Skip to content

Commit

Permalink
fix lint and change HasThumbnail to hasThumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
azbcww committed Oct 18, 2023
1 parent e3d6c7c commit ad78889
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions repository/gorm/stamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ func TestGormRepository_GetStampStats(t *testing.T) {

}


func TestRepositoryImpl_StampThumbnailExists(t *testing.T) {
t.Parallel()
repo, assert, _ := setup(t, ex1)
Expand All @@ -384,4 +383,4 @@ func TestRepositoryImpl_StampThumbnailExists(t *testing.T) {
if assert.NoError(err) {
assert.Len(arrWithThumb, n)
}
}
}
6 changes: 3 additions & 3 deletions router/v3/stamps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestHandlers_GetStamps(t *testing.T) {

obj.Length().IsEqual(1)
stampEquals(t, stamp, obj.Value(0).Object())
obj.Value(0).Object().Value("HasThumbnail").Boolean().IsEqual(false)
obj.Value(0).Object().Value("hasThumbnail").Boolean().IsEqual(false)
})

t.Run("success (type=original)", func(t *testing.T) {
Expand All @@ -102,7 +102,7 @@ func TestHandlers_GetStamps(t *testing.T) {

obj.Length().IsEqual(1)
stampEquals(t, stamp, obj.Value(0).Object())
obj.Value(0).Object().Value("HasThumbnail").Boolean().IsEqual(false)
obj.Value(0).Object().Value("hasThumbnail").Boolean().IsEqual(false)
})

t.Run("success (type=unicode)", func(t *testing.T) {
Expand Down Expand Up @@ -132,7 +132,7 @@ func TestHandlers_GetStamps(t *testing.T) {

obj.Length().IsEqual(1)
stampEquals(t, stamp, obj.Value(0).Object())
obj.Value(0).Object().Value("HasThumbnail").Boolean().IsEqual(false)
obj.Value(0).Object().Value("hasThumbnail").Boolean().IsEqual(false)
})
}

Expand Down

0 comments on commit ad78889

Please sign in to comment.