mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
fix: postcss test
This commit is contained in:
parent
854e53911d
commit
e740f51efa
@ -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)
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user