From e740f51efafe1c088095f5e94d139335626076f7 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 6 Aug 2018 18:26:14 +0100 Subject: [PATCH] fix: postcss test --- test/unit/basic.generate.test.js | 2 +- test/unit/basic.ssr.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/basic.generate.test.js b/test/unit/basic.generate.test.js index 8b8a9537d2..1ab5afa9ec 100644 --- a/test/unit/basic.generate.test.js +++ b/test/unit/basic.generate.test.js @@ -65,7 +65,7 @@ describe('basic generate', () => { const window = await generator.nuxt.renderAndGetWindow(url('/css')) const headHtml = window.document.head.innerHTML - expect(headHtml.includes('.red{color:red}')).toBe(true) + expect(headHtml.includes('.red{color:red')).toBe(true) const element = window.document.querySelector('.red') expect(element).not.toBe(null) diff --git a/test/unit/basic.ssr.test.js b/test/unit/basic.ssr.test.js index dc86614614..6079e9731a 100644 --- a/test/unit/basic.ssr.test.js +++ b/test/unit/basic.ssr.test.js @@ -39,7 +39,7 @@ describe('basic ssr', () => { const window = await nuxt.renderAndGetWindow(url('/css')) const headHtml = window.document.head.innerHTML - expect(headHtml.includes('background-color:blue')).toBe(true) + expect(headHtml.includes('background-color:#00f')).toBe(true) // const element = window.document.querySelector('div.red') // t.is(window.getComputedStyle(element)['background-color'], 'blue')