Skip to content

Commit 352c66d

Browse files
refactor(test): move task list output coverage to specs
1 parent e8dc395 commit 352c66d

3 files changed

Lines changed: 20 additions & 14 deletions

File tree

test/specs/new/tasklist_basic.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<h1>tight</h1>
2+
<ul>
3+
<li><input disabled="" type="checkbox"> item</li>
4+
</ul>
5+
<h1>loose</h1>
6+
<ul>
7+
<li><p><input disabled="" type="checkbox"> item 1</p>
8+
</li>
9+
<li><p><input disabled="" type="checkbox"> item 2</p>
10+
</li>
11+
</ul>

test/specs/new/tasklist_basic.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# tight
2+
3+
- [ ] item
4+
5+
# loose
6+
7+
- [ ] item 1
8+
9+
- [ ] item 2

test/unit/marked.test.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,6 @@ describe('marked unit', () => {
4242
});
4343
});
4444

45-
describe('task', () => {
46-
it('space after checkbox', () => {
47-
const html = marked.parse('- [ ] item');
48-
49-
assert.strictEqual(html, '<ul>\n<li><input disabled="" type="checkbox"> item</li>\n</ul>\n');
50-
});
51-
52-
it('space after loose checkbox', () => {
53-
const html = marked.parse('- [ ] item 1\n\n- [ ] item 2');
54-
55-
assert.strictEqual(html, '<ul>\n<li><p><input disabled="" type="checkbox"> item 1</p>\n</li>\n<li><p><input disabled="" type="checkbox"> item 2</p>\n</li>\n</ul>\n');
56-
});
57-
});
58-
5945
describe('parseInline', () => {
6046
it('should parse inline tokens', () => {
6147
const md = '**strong** _em_';

0 commit comments

Comments
 (0)