From 39c6536bccf2ff6d51f5ab91b3883df72400ba11 Mon Sep 17 00:00:00 2001 From: nkzawa Date: Thu, 1 Dec 2016 20:39:56 +0900 Subject: [PATCH] fix a test --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => {