Skip to content

Commit

Permalink
Fix tests for TMDB
Browse files Browse the repository at this point in the history
  • Loading branch information
WLSF committed May 10, 2023
1 parent 325750e commit dfcb386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http/poison.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ defmodule Mater.HTTP.Poison do
do: decode_opts(rest, [{"Authorization", auth} | acc])

defp decode_opts([], acc),
do: acc
do: [{"Content-Type", "application/json"} | acc]
end
2 changes: 1 addition & 1 deletion test/mater_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule MaterTest do

describe "The Movie DB" do
test "returns total count of movies based the term" do
assert {:ok, []} = TMDB.call("Matrix")
assert {:ok, %{"data" => %{"movies" => %{"search" => %{"totalCount" => 80}}}}} = TMDB.call("Matrix")
end
end

Expand Down

0 comments on commit dfcb386

Please sign in to comment.