mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
remove redundant test
This commit is contained in:
parent
f9fc0a741e
commit
27e8d8db3c
@ -1,16 +0,0 @@
|
||||
defmodule PlausibleWeb.EmailViewTest do
|
||||
use PlausibleWeb.ConnCase, async: true
|
||||
alias PlausibleWeb.EmailView
|
||||
|
||||
describe "user salutation" do
|
||||
test "picks first name if full name has two parts" do
|
||||
user1 = %Plausible.Auth.User{name: "Jane"}
|
||||
user2 = %Plausible.Auth.User{name: "Jane Doe"}
|
||||
user3 = %Plausible.Auth.User{name: "Jane Alice Doe"}
|
||||
|
||||
assert EmailView.user_salutation(user1) == "Jane"
|
||||
assert EmailView.user_salutation(user2) == "Jane"
|
||||
assert EmailView.user_salutation(user3) == "Jane"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user