From 5cff7cb86dc4290188ae51b03031f660aef6609b Mon Sep 17 00:00:00 2001 From: azbcww <1121hatsuyuki@gmail.com> Date: Mon, 27 Nov 2023 17:51:16 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"test=E8=BF=BD=E5=8A=A0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e3d6c7ccbdc20131353eac45a88fc4a6a5d95009. --- repository/gorm/stamp_test.go | 21 --------------------- router/v3/stamps_test.go | 3 --- 2 files changed, 24 deletions(-) diff --git a/repository/gorm/stamp_test.go b/repository/gorm/stamp_test.go index 6170e6b9b..ba44ad238 100644 --- a/repository/gorm/stamp_test.go +++ b/repository/gorm/stamp_test.go @@ -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) - } -} \ No newline at end of file diff --git a/router/v3/stamps_test.go b/router/v3/stamps_test.go index eef63b82f..678a0f269 100644 --- a/router/v3/stamps_test.go +++ b/router/v3/stamps_test.go @@ -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) { @@ -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) { @@ -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) }) }