Skip to content

Commit e1f5ea0

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

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

test/integration/render.test.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ describe('render', function () {
4141
- [ ] Task 3
4242
`);
4343

44-
expect(output).toMatchInlineSnapshot(`"<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>"`);
44+
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>"`,
46+
);
4547
});
4648

4749
test('as ordered task list', async function () {
@@ -50,7 +52,9 @@ describe('render', function () {
5052
2. [x] Task 2
5153
`);
5254

53-
expect(output).toMatchInlineSnapshot(`"<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>"`);
55+
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>"`,
57+
);
5458
});
5559

5660
test('normal unordered', async function () {
@@ -59,7 +63,9 @@ describe('render', function () {
5963
- just text
6064
`);
6165

62-
expect(output).toMatchInlineSnapshot(`"<ul ><li><a href="#/link" >linktext</a></li><li>just text</li></ul>"`);
66+
expect(output).toMatchInlineSnapshot(
67+
`"<ul ><li><a href="#/link" >linktext</a></li><li>just text</li></ul>"`,
68+
);
6369
});
6470

6571
test('unordered with custom start', async function () {
@@ -72,7 +78,9 @@ describe('render', function () {
7278
3. third
7379
`);
7480

75-
expect(output).toMatchInlineSnapshot(`"<ol ><li>first</li><li>second</li></ol><p>text</p><ol start="3"><li>third</li></ol>"`);
81+
expect(output).toMatchInlineSnapshot(
82+
`"<ol ><li>first</li><li>second</li></ol><p>text</p><ol start="3"><li>third</li></ol>"`,
83+
);
7684
});
7785

7886
test('nested', async function () {
@@ -84,7 +92,9 @@ describe('render', function () {
8492
- 3
8593
`);
8694

87-
expect(output).toMatchInlineSnapshot(`"<ul ><li>1</li><li>2</p><ul ><li>2 a</li><li>2 b</li></ul></li><li>3</li></ul>"`);
95+
expect(output).toMatchInlineSnapshot(
96+
`"<ul ><li>1</li><li>2</p><ul ><li>2 a</li><li>2 b</li></ul></li><li>3</li></ul>"`,
97+
);
8898
});
8999
});
90100

0 commit comments

Comments
 (0)