diff --git a/packages/react-scripts/fixtures/kitchensink/integration/webpack.test.js b/packages/react-scripts/fixtures/kitchensink/integration/webpack.test.js index 1ddfa31cbad..69b699a9832 100644 --- a/packages/react-scripts/fixtures/kitchensink/integration/webpack.test.js +++ b/packages/react-scripts/fixtures/kitchensink/integration/webpack.test.js @@ -36,13 +36,13 @@ describe('Integration', () => { const children = doc.getElementById('graphql-inclusion').children; // .graphql - expect(children[0].textContent.replace(/\s/g, '')).to.match( - /^{"kind":"Document","definitions":\[{"kind":"OperationDefinition","operation":"query","variableDefinitions":\[],"directives":\[\],"selectionSet":{"kind":"SelectionSet","selections":\[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":\[{"kind":"Argument","name":{"kind":"Name","value":"test"},"value":{"kind":"StringValue","value":"test","block":false}}\],"directives":\[\],"selectionSet":{"kind":"SelectionSet","selections":\[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":\[\],"directives":\[\]}\]}}\]}}\],"loc":{"start":0,"end":41}}$/ + expect(children[0].textContent.replace(/\s/g, '')).to.equal( + '{"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","variableDefinitions":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"test"},"value":{"kind":"StringValue","value":"test","block":false}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":[],"directives":[]}]}}]}}],"loc":{"start":0,"end":40,"source":{"body":"{\\\\ntest(test:\\\\"test\\\\"){\\\\ntest\\\\n}\\\\n}\\\\n","name":"GraphQLrequest","locationOffset":{"line":1,"column":1}}}}' ); // .gql - expect(children[1].textContent.replace(/\s/g, '')).to.match( - /^{"kind":"Document","definitions":\[{"kind":"OperationDefinition","operation":"query","variableDefinitions":\[],"directives":\[\],"selectionSet":{"kind":"SelectionSet","selections":\[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":\[{"kind":"Argument","name":{"kind":"Name","value":"test"},"value":{"kind":"StringValue","value":"test","block":false}}\],"directives":\[\],"selectionSet":{"kind":"SelectionSet","selections":\[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":\[\],"directives":\[\]}\]}}\]}}\],"loc":{"start":0,"end":41}}$/ + expect(children[1].textContent.replace(/\s/g, '')).to.equal( + '{"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","variableDefinitions":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"test"},"value":{"kind":"StringValue","value":"test","block":false}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"test"},"arguments":[],"directives":[]}]}}]}}],"loc":{"start":0,"end":40,"source":{"body":"{\\\\ntest(test:\\\\"test\\\\"){\\\\ntest\\\\n}\\\\n}\\\\n","name":"GraphQLrequest","locationOffset":{"line":1,"column":1}}}}' ); });