Skip to content

Commit 0bec9e0

Browse files
committed
on_ee
1 parent 751062a commit 0bec9e0

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

test/plausible_web/controllers/site_controller_test.exs

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -977,23 +977,25 @@ defmodule PlausibleWeb.SiteControllerTest do
977977
insert(:spike_notification, site: site)
978978
insert(:drop_notification, site: site)
979979

980-
{:ok, g1} = Plausible.Goals.create(site, %{"page_path" => "/go/to/blog/**"})
981-
{:ok, g2} = Plausible.Goals.create(site, %{"event_name" => "Signup"})
982-
{:ok, [g1, g2]}
983-
984-
{:ok, _} =
985-
Plausible.Funnels.create(
986-
site,
987-
"funnel1",
988-
[%{"goal_id" => g1.id}, %{"goal_id" => g2.id}]
989-
)
980+
on_ee do
981+
{:ok, g1} = Plausible.Goals.create(site, %{"page_path" => "/go/to/blog/**"})
982+
{:ok, g2} = Plausible.Goals.create(site, %{"event_name" => "Signup"})
983+
{:ok, [g1, g2]}
984+
985+
{:ok, _} =
986+
Plausible.Funnels.create(
987+
site,
988+
"funnel1",
989+
[%{"goal_id" => g1.id}, %{"goal_id" => g2.id}]
990+
)
990991

991-
{:ok, _} =
992-
Plausible.Funnels.create(
993-
site,
994-
"funnel2",
995-
[%{"goal_id" => g2.id}, %{"goal_id" => g1.id}]
996-
)
992+
{:ok, _} =
993+
Plausible.Funnels.create(
994+
site,
995+
"funnel2",
996+
[%{"goal_id" => g2.id}, %{"goal_id" => g1.id}]
997+
)
998+
end
997999

9981000
delete(conn, "/#{site.domain}")
9991001

0 commit comments

Comments
 (0)