diff --git a/test/index.js b/test/index.js index ba583ebe..c3bf9340 100644 --- a/test/index.js +++ b/test/index.js @@ -15,8 +15,8 @@ test(async t => { test(async t => { const html = await render('/css') - t.true(html.includes('.css-im3wl1')) - t.true(html.includes('
This is red
')) + t.regex(html, /\.css-\w+/) + t.regex(html, /
This is red<\/div>/) }) test(async t => {