Remove test for join-existing-users-string (#14892)

This commit is contained in:
Volodymyr Kozieiev 2023-01-25 16:39:16 +00:00 committed by GitHub
parent 612c17a8db
commit 7585767961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 29 deletions

View File

@ -1,29 +0,0 @@
(ns status-im2.contexts.communities.overview.utils-test
(:require [cljs.test :refer-macros [deftest is testing]]
[status-im2.contexts.communities.overview.utils :as u]))
(deftest open-activity-center-test
(testing "One user"
(let [users [{:full-name "Alicia K"}]]
(is (= "Join Alicia"
(u/join-existing-users-string users)))))
(testing "Two users"
(let [users [{:full-name "Alicia K"}
{:full-name "Marcus C"}]]
(is (= "Join Alicia and Marcus"
(u/join-existing-users-string users)))))
(testing "Three users"
(let [users [{:full-name "Alicia K"}
{:full-name "Marcus C"}
{:full-name "MNO PQR"}]]
(is (= "Join Alicia, Marcus and 1 more"
(u/join-existing-users-string users)))))
(testing "Four users"
(let [users [{:full-name "Alicia K"}
{:full-name "Marcus C"}
{:full-name "MNO PQR"}
{:full-name "STU VWX"}]]
(is (= "Join Alicia, Marcus and 2 more"
(u/join-existing-users-string users))))))