Unverified Commit 9c1b183a authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix styled-jsx tests from swc bump (#32297)

Fixes failing tests from swc bump in https://github.com/vercel/next.js/pull/32210 which removed some whitespace. 

x-ref: https://github.com/vercel/next.js/runs/4456734159?check_suite_focus=true
x-ref: https://github.com/vercel/next.js/runs/4461064714?check_suite_focus=true
parent aa32deb4
......@@ -218,7 +218,7 @@ export default function (render, fetch, ctx) {
const styleId = $('#blue-box').attr('class')
const style = $('style')
expect(style.text().includes(`p.${styleId} {color:blue`)).toBeTruthy()
expect(style.text().includes(`p.${styleId}{color:blue`)).toBeTruthy()
})
test('renders styled jsx external', async () => {
......@@ -226,7 +226,7 @@ export default function (render, fetch, ctx) {
const styleId = $('#blue-box').attr('class')
const style = $('style')
expect(style.text().includes(`p.${styleId} {color:blue`)).toBeTruthy()
expect(style.text().includes(`p.${styleId}{color:blue`)).toBeTruthy()
})
test('renders properties populated asynchronously', async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment