@@ -162,7 +162,7 @@ func TestGetUserUnreadNotificationsCount(t *testing.T) {
162162 assert .Equal (t , 1 , count )
163163}
164164
165- func TestFindUnreadLikeNotification_PostNotification (t * testing.T ) {
165+ func TestFindLikeNotification_PostNotification (t * testing.T ) {
166166 env := setupNotificationService (t )
167167 user := testutil .CreateTestUser (t , env .userRepository , "testUser" )
168168
@@ -173,13 +173,13 @@ func TestFindUnreadLikeNotification_PostNotification(t *testing.T) {
173173 _ , err = env .notificationRepository .InsertNotification (t .Context (), user .UserID , & post .PostID , nil , nil , "@user liked your post." , models .NotificationTypeLike , nil )
174174 require .NoError (t , err )
175175
176- result , err := env .notificationRepository .FindUnreadLikeNotification (t .Context (), user .UserID , post .PostID , nil )
176+ result , err := env .notificationRepository .FindLikeNotification (t .Context (), user .UserID , post .PostID , nil )
177177 require .NoError (t , err )
178178 require .NotNil (t , result )
179179 assert .Equal (t , "@user liked your post." , result .Message )
180180}
181181
182- func TestFindUnreadLikeNotification_CommentNotification (t * testing.T ) {
182+ func TestFindLikeNotification_CommentNotification (t * testing.T ) {
183183 env := setupNotificationService (t )
184184 user := testutil .CreateTestUser (t , env .userRepository , "testUser" )
185185
@@ -193,7 +193,7 @@ func TestFindUnreadLikeNotification_CommentNotification(t *testing.T) {
193193 _ , err = env .notificationRepository .InsertNotification (t .Context (), user .UserID , & post .PostID , & comment .CommentID , nil , "@user liked your comment." , models .NotificationTypeLike , nil )
194194 require .NoError (t , err )
195195
196- result , err := env .notificationRepository .FindUnreadLikeNotification (t .Context (), user .UserID , post .PostID , & comment .CommentID )
196+ result , err := env .notificationRepository .FindLikeNotification (t .Context (), user .UserID , post .PostID , & comment .CommentID )
197197 require .NoError (t , err )
198198 require .NotNil (t , result )
199199 assert .Equal (t , "@user liked your comment." , result .Message )
0 commit comments