diff --git a/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt b/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt index a1d19ed..28f7b98 100644 --- a/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt +++ b/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt @@ -32,7 +32,7 @@ class EmailsFetcherTest { assertThat(result.overallError).isNull() 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() }