From 5ebaa55dbab6635f10cb780ce1443ccc9d18d04e Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 30 May 2018 15:58:59 -0700 Subject: [PATCH] failing test for bad doc cache normalization --- test/graphql.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/graphql.js b/test/graphql.js index 726e3918..2c129afb 100644 --- a/test/graphql.js +++ b/test/graphql.js @@ -275,6 +275,10 @@ const assert = require('chai').assert; assert.isTrue(gql`{ sameQuery }` === gql` { sameQuery, }`); }); + it('returns a different object for the queries with significant whitespace differences', () => { + assert.isFalse(gql`{ sameQuery(f: " ") }` === gql` { sameQuery(f: " ") }`); + }); + const fragmentAst = gql` fragment UserFragment on User { firstName