mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
25 lines
827 B
Clojure
25 lines
827 B
Clojure
;; This Source Code Form is subject to the terms of the Mozilla Public
|
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
;;
|
|
;; Copyright (c) KALEIDOS INC
|
|
|
|
(ns backend-tests.email-sending-test
|
|
(:require
|
|
[app.db :as db]
|
|
[app.email :as emails]
|
|
[backend-tests.helpers :as th]
|
|
[clojure.test :as t]
|
|
[promesa.core :as p]))
|
|
|
|
(t/use-fixtures :once th/state-init)
|
|
(t/use-fixtures :each th/database-reset)
|
|
|
|
(t/deftest register-email-rendering
|
|
(let [result (emails/render emails/register {:to "example@app.io" :name "foo"})]
|
|
(t/is (map? result))
|
|
(t/is (contains? result :subject))
|
|
(t/is (contains? result :body))
|
|
(t/is (contains? result :to))
|
|
#_(t/is (contains? result :reply-to))
|
|
(t/is (vector? (:body result)))))
|