Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F114107
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
788 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
R28 tesla
Attached
Detach File
Event Timeline
Log In to Comment