Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjos committed Oct 3, 2024
1 parent 1ee0ad9 commit fdf0286
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/absinthe/phoenix_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ defmodule Absinthe.PhoenixTest do
assert reply == %{errors: [%{locations: [%{column: 15, line: 1}], message: "unauthorized"}]}
end

@tag :skip #TODO: update when absinthe's version is >= 1.8
# TODO: update when absinthe's version is >= 1.8
@tag :skip
test "config functions can return errors when returning map", %{socket: socket} do
ref =
push(socket, "doc", %{
Expand All @@ -185,7 +186,15 @@ defmodule Absinthe.PhoenixTest do

assert_reply(ref, :error, reply)

assert reply == %{errors: [%{locations: [%{column: 15, line: 1}], message: "unauthorized", extensions: %{code: "UNAUTHORIZED"}}]}
assert reply == %{
errors: [
%{
locations: [%{column: 15, line: 1}],
message: "unauthorized",
extensions: %{code: "UNAUTHORIZED"}
}
]
}
end

test "can't do multiple fields on a subscription root", %{socket: socket} do
Expand Down

0 comments on commit fdf0286

Please sign in to comment.