Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove unused code

Uku Tahtad2e5b6b281d
diff --git a/test/mix/tasks/send_trial_notifications_test.exs b/test/mix/tasks/send_trial_notifications_test.exs
index 74f91534b0..526c18754c 100644
--- a/test/mix/tasks/send_trial_notifications_test.exs
+++ b/test/mix/tasks/send_trial_notifications_test.exs
@@ -34,26 +34,6 @@ defmodule Mix.Tasks.SendTrialNotificationsTest do
assert_delivered_email(PlausibleWeb.Email.trial_upgrade_email(user, "tomorrow", 1))
end
- # test "sends an upgrade email the day the trial ends" do
- # user = insert(:user, inserted_at: Timex.now |> Timex.shift(days: -30))
- # site = insert(:site, members: [user])
- # insert(:pageview, hostname: site.domain)
- #
- # Mix.Tasks.SendTrialNotifications.execute()
- #
- # assert_delivered_email(PlausibleWeb.Email.trial_upgrade_email(user, "today", 1))
- # end
- #
- #test "sends a trial over email on the day after the trial ends" do
- # user = insert(:user, inserted_at: Timex.now |> Timex.shift(days: -31))
- # site = insert(:site, members: [user])
- # insert(:pageview, hostname: site.domain)
-
- # Mix.Tasks.SendTrialNotifications.execute()
-
- # assert_delivered_email(PlausibleWeb.Email.trial_over_email(user))
- #end
-
test "does not send a notification if user has a subscription" do
user1 = insert(:user, inserted_at: Timex.now |> Timex.shift(days: -14))
site1 = insert(:site, members: [user1])