fix: postcss test

This commit is contained in:
Clark Du 2018-08-06 18:26:14 +01:00
parent 854e53911d
commit e740f51efa
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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')