Skip to content

Commit

Permalink
Revert "test追加"
Browse files Browse the repository at this point in the history
This reverts commit e3d6c7c.
  • Loading branch information
azbcww committed Nov 27, 2023
1 parent f35c172 commit 5cff7cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
21 changes: 0 additions & 21 deletions repository/gorm/stamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,24 +364,3 @@ func TestGormRepository_GetStampStats(t *testing.T) {
})

}


func TestRepositoryImpl_StampThumbnailExists(t *testing.T) {
t.Parallel()
repo, assert, _ := setup(t, ex1)

n := 10
for i := 0; i < 10; i++ {
mustMakeStamp(t, repo, rand, uuid.Nil)
}

arr, err := repo.GetAllStamps(repository.StampTypeAll)
if assert.NoError(err) {
assert.Len(arr, n)
}

arrWithThumb, err := repo.StampThumbnailExists(arr)
if assert.NoError(err) {
assert.Len(arrWithThumb, n)
}
}
3 changes: 0 additions & 3 deletions router/v3/stamps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ 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)
})

t.Run("success (type=original)", func(t *testing.T) {
Expand All @@ -102,7 +101,6 @@ 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)
})

t.Run("success (type=unicode)", func(t *testing.T) {
Expand Down Expand Up @@ -132,7 +130,6 @@ 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)
})
}

Expand Down

0 comments on commit 5cff7cb

Please sign in to comment.