🎉 Add the ability to copy team invitation link

This commit is contained in:
Andrey Antukh 2022-12-13 15:29:43 +01:00
parent a6b26f0563
commit f11da06637
9 changed files with 262 additions and 135 deletions

View file

@ -63,6 +63,16 @@
(t/is (th/success? out))
(t/is (= 1 (:call-count (deref mock)))))
;; get invitation token
(let [params {::th/type :get-team-invitation-token
:profile-id (:id profile1)
:team-id (:id team)
:email "foo@bar.com"}
out (th/command! params)]
(t/is (th/success? out))
(let [result (:result out)]
(contains? result :token)))
;; invite user with bounce
(th/reset-mock! mock)
@ -235,8 +245,6 @@
)))
(t/deftest invite-team-member-with-email-verification-disabled
(with-mocks [mock {:target 'app.emails/send! :return nil}]
(let [profile1 (th/create-profile* 1 {:is-active true})