From 841137afa646a1151d0261d7ff1324152bb6db0c Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Sat, 19 Jun 2021 00:48:05 +0800 Subject: [PATCH] fix code review --- test/runtime/index.ts | 2 +- .../samples/attribute-boolean-indeterminate/_config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runtime/index.ts b/test/runtime/index.ts index c72d9ef555..ff6d1039d3 100644 --- a/test/runtime/index.ts +++ b/test/runtime/index.ts @@ -62,7 +62,7 @@ describe('runtime', () => { throw new Error('Forgot to remove `solo: true` from test'); } - const testName = `${dir} ${hydrate ? `(with hydration ${from_ssr_html ? 'from ssr rendered html' : ''})` : ''}`; + const testName = `${dir} ${hydrate ? `(with hydration${from_ssr_html ? ' from ssr rendered html' : ''})` : ''}`; (config.skip ? it.skip : solo ? it.only : it)(testName, () => { if (failed.has(dir)) { // this makes debugging easier, by only printing compiled output once diff --git a/test/runtime/samples/attribute-boolean-indeterminate/_config.js b/test/runtime/samples/attribute-boolean-indeterminate/_config.js index 38a6006fee..d6e97ffc0e 100644 --- a/test/runtime/samples/attribute-boolean-indeterminate/_config.js +++ b/test/runtime/samples/attribute-boolean-indeterminate/_config.js @@ -7,11 +7,11 @@ export default { indeterminate: true }, - html: '', + html: "", // somehow ssr will render indeterminate="" // the hydrated html will still contain that attribute - ssrHtml: '', + ssrHtml: "", test({ assert, component, target }) { const input = target.querySelector('input');