Skip to content

Commit 1b588f0

Browse files
committed
update: tricky for render result
1 parent e1f5ea0 commit 1b588f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/render/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class Compiler {
250250
return (
251251
'<input ' +
252252
(checked ? 'checked="" ' : '') +
253-
'disabled="" type="checkbox">'
253+
'disabled="" type="checkbox"> '
254254
);
255255
}),
256256
(renderer.origin = origin);

test/integration/render.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('render', function () {
4242
`);
4343

4444
expect(output).toMatchInlineSnapshot(
45-
`"<ul class="task-list"><li class="task-list-item"><label><input checked="" disabled="" type="checkbox">Task 1</label></li><li class="task-list-item"><label><input disabled="" type="checkbox">Task 2</label></li><li class="task-list-item"><label><input disabled="" type="checkbox">Task 3</label></li></ul>"`,
45+
`"<ul class="task-list"><li class="task-list-item"><label><input checked="" disabled="" type="checkbox"> Task 1</label></li><li class="task-list-item"><label><input disabled="" type="checkbox"> Task 2</label></li><li class="task-list-item"><label><input disabled="" type="checkbox"> Task 3</label></li></ul>"`,
4646
);
4747
});
4848

@@ -53,7 +53,7 @@ describe('render', function () {
5353
`);
5454

5555
expect(output).toMatchInlineSnapshot(
56-
`"<ol class="task-list"><li class="task-list-item"><label><input disabled="" type="checkbox">Task 1</label></li><li class="task-list-item"><label><input checked="" disabled="" type="checkbox">Task 2</label></li></ol>"`,
56+
`"<ol class="task-list"><li class="task-list-item"><label><input disabled="" type="checkbox"> Task 1</label></li><li class="task-list-item"><label><input checked="" disabled="" type="checkbox"> Task 2</label></li></ol>"`,
5757
);
5858
});
5959

0 commit comments

Comments
 (0)