Added check for isEncrypted == false as encrypted messages don't have a (readable) message body
This commit is contained in:
parent
4deaf9cb21
commit
2c8f4ec050
|
@ -32,7 +32,7 @@ class EmailsFetcherTest {
|
||||||
assertThat(result.overallError).isNull()
|
assertThat(result.overallError).isNull()
|
||||||
assertThat(result.emails).isNotEmpty()
|
assertThat(result.emails).isNotEmpty()
|
||||||
|
|
||||||
val emailsWithoutBody = result.emails.filter { it.plainTextOrHtmlBody == null }
|
val emailsWithoutBody = result.emails.filter { it.plainTextOrHtmlBody == null && it.isEncrypted == false }
|
||||||
assertThat(emailsWithoutBody).isEmpty()
|
assertThat(emailsWithoutBody).isEmpty()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue