Skip to content
Snippets Groups Projects
Commit b66d9929 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

quick unit test on formatting of password reset email.

parent 5561ce3f
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,17 @@
(:require [expectations :refer :all]
[metabase.email.messages :refer :all]))
;; new user email
(expect
(str "<html><body><p>Welcome to Metabase test!</p>"
"<p>Your account is setup and ready to go, you just need to set a password so you can login. "
"Follow the link below to reset your account password.</p>"
"<p><a href=\"http://localhost/some/url\">http://localhost/some/url</a></p></body></html>")
(send-new-user-email "test" "test@test.com" "http://localhost/some/url"))
;; password reset email
(expect
(str "<html><body><p>You're receiving this e-mail because you or someone else has requested a password for your user account at test.domain.com. "
"It can be safely ignored if you did not request a password reset. Click the link below to reset your password.</p>"
"<p><a href=\"http://localhost/some/url\">http://localhost/some/url</a></p></body></html>")
(send-password-reset-email "test@test.com" "test.domain.com" "http://localhost/some/url"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment