Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Fix arities in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thiamsantos committed Jun 28, 2021
1 parent 3d8b2d3 commit fd1cda7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/mxpanel/event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/mxpanel/event_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
14 changes: 7 additions & 7 deletions test/mxpanel/people_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down Expand Up @@ -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"}

Expand Down Expand Up @@ -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"}
Expand Down Expand Up @@ -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"}

Expand Down Expand Up @@ -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"}

Expand Down Expand Up @@ -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"}

Expand Down Expand Up @@ -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"}

Expand Down

0 comments on commit fd1cda7

Please sign in to comment.