fix(graphql): json error is not anymore prefixed by unknown line number

This commit is contained in:
Colin Darie 2024-02-07 12:10:40 +01:00
parent 18e5e13eba
commit c4110c35bf
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -984,7 +984,7 @@ describe API::V2::GraphqlController do
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