Skip to content

Commit

Permalink
test(api): Update test assertion for CreateMessageResponseTest
Browse files Browse the repository at this point in the history
 - internal class will affect the code coverage.

The test for CreateMessageResponse has been updated to accommodate new content setup.
  • Loading branch information
hanrw committed Jun 4, 2024
1 parent 42a7b19 commit d7c39fa
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test


internal class CreateMessageResponseTest {
class CreateMessageResponseTest {

@Test
fun `should create a dummy CreateMessageResponse`() {
Expand All @@ -18,7 +18,10 @@ internal class CreateMessageResponseTest {
assertNull(dummyResponse.stopSequence)
assertEquals("message", dummyResponse.type)
assertEquals(Usage(25, 1), dummyResponse.usage)
assertEquals(listOf(ContentMessage("Hi! My name is Claude.", "text")), dummyResponse.content)
assertEquals(
listOf(ContentMessage("Hi! My name is Claude.", "text")),
dummyResponse.content
)
}

}

0 comments on commit d7c39fa

Please sign in to comment.