diff --git a/packages/cli/test/cases/build.data.graph/build.data.graph.spec.js b/packages/cli/test/cases/build.data.graph/build.data.graph.spec.js index a69c68206..4e4ec88d2 100644 --- a/packages/cli/test/cases/build.data.graph/build.data.graph.spec.js +++ b/packages/cli/test/cases/build.data.graph/build.data.graph.spec.js @@ -32,7 +32,7 @@ const TestBed = require('../../../../../test/test-bed'); describe('Build Greenwood With: ', function() { const LABEL = 'Data from GraphQL'; - const apolloStateLabel = 'window.__APOLLO_STATE__='; + const apolloStateRegex = /window.__APOLLO_STATE__=({.*?});/; let setup; before(async function() { @@ -73,25 +73,15 @@ describe('Build Greenwood With: ', function() { expect(await glob.promise(path.join(this.context.publicDir, './cache.json'))).to.have.lengthOf(1); }); - it('should output one cache.json file with expected cache contents for ROOT_QUERY', function() { - const cacheContents = require(path.join(this.context.publicDir, './cache.json')); - - expect(cacheContents).to.contain.key('ROOT_QUERY.navigation.0'); - expect(cacheContents).to.contain.key('ROOT_QUERY'); - }); - - it('should have one window.__APOLLO_STATE__