Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Feb 8, 2024
1 parent 96595b0 commit 466e843
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/test/kotlin/com/nylas/resources/DraftsTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ class DraftsTests {
assertEquals(2, draft.folders?.size)
assertEquals("8l6c4d11y1p4dm4fxj52whyr9", draft.folders?.first())
assertEquals("d9zkcr2tljpu3m4qpj7l2hbr0", draft.folders?.last())
assertEquals(1, draft.from.size)
assertEquals("Daenerys Targaryen", draft.from.first().name)
assertEquals("[email protected]", draft.from.first().email)
assertEquals(1, draft.from?.size)
assertEquals("Daenerys Targaryen", draft.from?.first()?.name)
assertEquals("[email protected]", draft.from?.first()?.email)
assertEquals("41009df5-bf11-4c97-aa18-b285b5f2e386", draft.grantId)
assertEquals("5d3qmne77v32r8l4phyuksl2x", draft.id)
assertEquals("draft", draft.getObject())
Expand Down
6 changes: 3 additions & 3 deletions src/test/kotlin/com/nylas/resources/MessagesTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ class MessagesTests {
assertEquals(2, message.folders?.size)
assertEquals("8l6c4d11y1p4dm4fxj52whyr9", message.folders?.get(0))
assertEquals("d9zkcr2tljpu3m4qpj7l2hbr0", message.folders?.get(1))
assertEquals(1, message.from.size)
assertEquals("Daenerys Targaryen", message.from[0].name)
assertEquals("[email protected]", message.from[0].email)
assertEquals(1, message.from?.size)
assertEquals("Daenerys Targaryen", message.from?.get(0)?.name)
assertEquals("[email protected]", message.from?.get(0)?.email)
assertEquals("41009df5-bf11-4c97-aa18-b285b5f2e386", message.grantId)
assertEquals("5d3qmne77v32r8l4phyuksl2x", message.id)
assertEquals("message", message.getObject())
Expand Down

0 comments on commit 466e843

Please sign in to comment.