Skip to content

Commit eb39d3a

Browse files
committed
fix tests 3
1 parent c05a409 commit eb39d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void testGetTagDetails_Success() {
162162
assertEquals("Description1", response.getDescription());
163163
assertEquals(2, response.getRelatedQuestions().size());
164164
verify(tagRepository, times(1)).findById(tagId);
165-
verify(questionRepository, times(1)).findQuestionsByTagId(tagId);
165+
verify(questionRepository, times(1)).findQuestionsByDifficultyAndTagId(DifficultyLevel.EASY, tagId);
166166
}
167167

168168
@Test

0 commit comments

Comments
 (0)