Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
navinpeiris committed Jul 24, 2023
1 parent 6314641 commit d4d8629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/logster/plugs/logger_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ defmodule Logster.Plugs.LoggerTest do
|> call_and_capture_log(MyPlug)

assert message =~
~s(params={"upload":{"content_type":"image/png","filename":"blah.png","path":null})
~s(params={"upload":{"filename":"blah.png","path":null,"content_type":"image/png"})
end

test "logs phoenix related attributes if present" do
Expand Down Expand Up @@ -231,7 +231,7 @@ defmodule Logster.Plugs.LoggerTest do
test "logs params even when they are structs" do
message = conn(:get, "/hello/world") |> call_and_capture_log(MyStructParamsPlug)

assert message =~ "params={\"age\":27,\"name\":\"John\"}"
assert message =~ ~s(params={"name":"John","age":27})
end

test "logs params with inspect when a map is not encodeable as json" do
Expand Down

0 comments on commit d4d8629

Please sign in to comment.