Skip to content

Commit

Permalink
fix(graphql): json error is not anymore prefixed by unknown line number
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Feb 12, 2024
1 parent 18e5e13 commit c4110c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/api/v2/graphql_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def format_type_champ(type_champ)
it "should fail" do
expect(gql_data).to eq(nil)
expect(gql_errors).not_to eq(nil)
expect(body[:errors].first[:message]).to eq("809: unexpected token at '{'")
expect(body[:errors].first[:message]).to eq("unexpected token at '{'")
expect(body[:errors].first.key?(:backtrace)).to be_falsey
end
end
Expand Down

0 comments on commit c4110c3

Please sign in to comment.