From fd1cda79a7a511f3d70157624f08fb98f825eee3 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 28 Jun 2021 09:28:55 -0300 Subject: [PATCH] Fix arities in tests --- lib/mxpanel/event.ex | 2 +- test/mxpanel/event_test.exs | 2 +- test/mxpanel/people_test.exs | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/mxpanel/event.ex b/lib/mxpanel/event.ex index b048cef..5bd99d7 100644 --- a/lib/mxpanel/event.ex +++ b/lib/mxpanel/event.ex @@ -38,7 +38,7 @@ defmodule Mxpanel.Event do #{NimbleOptions.docs(@opts_schema)} """ - @spec new(String.t(), String.t(), map()) :: t() + @spec new(String.t(), String.t(), map(), Keyword.t()) :: t() def new(name, distinct_id, additional_properties \\ %{}, opts \\ []) when is_binary(name) and is_binary(distinct_id) and is_map(additional_properties) do opts = validate_options!(opts) diff --git a/test/mxpanel/event_test.exs b/test/mxpanel/event_test.exs index 3a173de..8350b0b 100644 --- a/test/mxpanel/event_test.exs +++ b/test/mxpanel/event_test.exs @@ -3,7 +3,7 @@ defmodule Mxpanel.EventTest do alias Mxpanel.Event - describe "new/3" do + describe "new/4" do test "create new event" do event = Event.new("signup", "13793") diff --git a/test/mxpanel/people_test.exs b/test/mxpanel/people_test.exs index 6782bf9..8858207 100644 --- a/test/mxpanel/people_test.exs +++ b/test/mxpanel/people_test.exs @@ -10,7 +10,7 @@ defmodule Mxpanel.PeopleTest do %{bypass: bypass} end - describe "set/3" do + describe "set/4" do test "success request", %{bypass: bypass} do client = %Client{base_url: "http://localhost:#{bypass.port}", token: "project_token"} properties = %{"Address" => "1313 Mockingbird Lane", "Birthday" => "1948-01-01"} @@ -89,7 +89,7 @@ defmodule Mxpanel.PeopleTest do end end - describe "unset/3" do + describe "unset/4" do test "success request", %{bypass: bypass} do client = %Client{base_url: "http://localhost:#{bypass.port}", token: "project_token"} @@ -142,7 +142,7 @@ defmodule Mxpanel.PeopleTest do end end - describe "set_once/3" do + describe "set_once/4" do test "success request", %{bypass: bypass} do client = %Client{base_url: "http://localhost:#{bypass.port}", token: "project_token"} properties = %{"First login date" => "2013-04-01T13:20:00"} @@ -197,7 +197,7 @@ defmodule Mxpanel.PeopleTest do end end - describe "increment/4" do + describe "increment/5" do test "success request", %{bypass: bypass} do client = %Client{base_url: "http://localhost:#{bypass.port}", token: "project_token"} @@ -250,7 +250,7 @@ defmodule Mxpanel.PeopleTest do end end - describe "append_item/4" do + describe "append_item/5" do test "success request", %{bypass: bypass} do client = %Client{base_url: "http://localhost:#{bypass.port}", token: "project_token"} @@ -303,7 +303,7 @@ defmodule Mxpanel.PeopleTest do end end - describe "remove_item/3" do + describe "remove_item/5" do test "success request", %{bypass: bypass} do client = %Client{base_url: "http://localhost:#{bypass.port}", token: "project_token"} @@ -356,7 +356,7 @@ defmodule Mxpanel.PeopleTest do end end - describe "delete/2" do + describe "delete/3" do test "success request", %{bypass: bypass} do client = %Client{base_url: "http://localhost:#{bypass.port}", token: "project_token"}