com.lightningkite.lightningserver.email.EmailApproximatePlainTextKtTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
package com.lightningkite.lightningserver.email
import com.lightningkite.lightningserver.HtmlDefaults
import com.lightningkite.lightningserver.settings.generalSettings
import kotlinx.coroutines.runBlocking
import org.junit.Assert.*
import org.junit.Test
class EmailApproximatePlainTextKtTest {
@Test
fun test(): Unit = runBlocking {
println(HtmlDefaults.baseEmail("""
${
HtmlDefaults.logo?.let {
"""
""".trimIndent()
} ?: ""
}
Log In to PROJECT
We received a request for a login email for [email protected]. To log in, please click the link below or enter the PIN.
Click here to login
PIN: 123456
If you did not request to be logged in, you can simply ignore this email.
PROJECT
""".trimIndent()).emailApproximatePlainText())
}
}