Page MenuHomePhorge

No OneTemporary

Size
788 B
Referenced Files
None
Subscribers
None
diff --git a/test/tesla/middleware/query_test.exs b/test/tesla/middleware/query_test.exs
index e928fbf..455ed74 100644
--- a/test/tesla/middleware/query_test.exs
+++ b/test/tesla/middleware/query_test.exs
@@ -1,16 +1,16 @@
defmodule Tesla.Middleware.QueryTest do
use ExUnit.Case
alias Tesla.Env
@middleware Tesla.Middleware.Query
test "joining default query params" do
- env = @middleware.call(%Env{}, [], page: 1)
+ assert {:ok, env} = @middleware.call(%Env{}, [], page: 1)
assert env.query == [page: 1]
end
test "should not override existing key" do
- env = @middleware.call(%Env{query: [page: 1]}, [], page: 5)
+ assert {:ok, env} = @middleware.call(%Env{query: [page: 1]}, [], page: 5)
assert env.query == [page: 1, page: 5]
end
end

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 7:53 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40044
Default Alt Text
(788 B)

Event Timeline