fix code review

pull/4444/head
tanhauhau 5 years ago
parent 0622e23f60
commit 841137afa6

@ -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

@ -7,11 +7,11 @@ export default {
indeterminate: true
},
html: '<input type=\'checkbox\'>',
html: "<input type='checkbox'>",
// somehow ssr will render indeterminate=""
// the hydrated html will still contain that attribute
ssrHtml: '<input type=\'checkbox\' indeterminate="">',
ssrHtml: "<input type='checkbox' indeterminate=''>",
test({ assert, component, target }) {
const input = target.querySelector('input');

Loading…
Cancel
Save