Skip to content

Commit 7d2a891

Browse files
committed
test additions
1 parent 8127881 commit 7d2a891

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/nuemark/test/block.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test('multiple thematic breaks', () => {
6666

6767

6868
test('parse thematic break', () => {
69-
const hrs = ['***', '___', '- - -', '*** --- ***']
69+
const hrs = ['+++', '---', '***', '___', '- - -', '*** --- ***']
7070
for (const str of hrs) {
7171
expect(getBreak(str)).toBeDefined()
7272
}

packages/nuemark/test/document.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ test('multiple sections', () => {
6565
const lines = [
6666
'# Hello', 'World',
6767
'## Foo', 'Bar',
68-
'---', 'Bruh', '***',
68+
'+++', 'Bruh', '---',
6969
]
7070

7171
const doc = parseDocument(lines)
7272
// expect(doc.sections.length).toBe(2)
7373

7474
const html = doc.render({ sections: ['hero'] })
7575
expect(html).toStartWith('<section class="hero"><h1>Hello</h1>')
76+
expect(html).toInclude('</section>\n\n<section>')
7677
expect(html).toEndWith('<hr></section>')
7778
})
7879

0 commit comments

Comments
 (0)