Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas committed Dec 10, 2024
1 parent c67bebc commit 8bf7a23
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ class ConversationFolderDAOTest : BaseDatabaseTest() {
id = folderId,
name = "folderName",
type = ConversationFolderTypeEntity.USER,
conversationIdList = listOf(conversationEntity1.id))
conversationIdList = listOf(conversationEntity1.id)
)

db.conversationFolderDAO.updateConversationFolders(listOf(conversationFolderEntity))
val result = db.conversationFolderDAO.observeConversationListFromFolder(folderId).first().first()
Expand All @@ -79,12 +80,13 @@ class ConversationFolderDAOTest : BaseDatabaseTest() {
id = folderId,
name = "",
type = ConversationFolderTypeEntity.FAVORITE,
conversationIdList = listOf(conversationEntity1.id))
conversationIdList = listOf(conversationEntity1.id)
)

db.conversationFolderDAO.updateConversationFolders(listOf(conversationFolderEntity))
val result = db.conversationFolderDAO.getFavoriteConversationFolder()

assertEquals(folderId, result.id)
assertEquals(folderId, result?.id)
}

@Test
Expand Down

0 comments on commit 8bf7a23

Please sign in to comment.