From e0737849ba74245231f837043d32b30a963deb57 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Tue, 26 Nov 2019 11:55:54 +0800 Subject: [PATCH] Add test for conversion in month --- .../controllers/api/stats_controller/main_graph_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs b/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs index c22870335..de7467f33 100644 --- a/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs +++ b/test/plausible_web/controllers/api/stats_controller/main_graph_test.exs @@ -152,7 +152,7 @@ defmodule PlausibleWeb.Api.StatsController.MainGraphTest do insert(:event, name: "Signup", hostname: site.domain, user_id: @user_id, timestamp: ~N[2019-01-01 02:00:00]) filters = Jason.encode!(%{goal: "Signup"}) - conn = get(conn, "/api/stats/#{site.domain}/main-graph?period=day&date=2019-01-01&filters=#{filters}") + conn = get(conn, "/api/stats/#{site.domain}/main-graph?period=month&date=2019-01-01&filters=#{filters}") res = json_response(conn, 200) assert %{"name" => "Converted visitors", "count" => 1, "change" => 100} in res["top_stats"]