mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 23:25:43 +01:00
Answer review: reject ~~ and keep later level-one headings in the tagline, limit the new legs' memory, say portable keeps the content
This commit is contained in:
@@ -18,8 +18,12 @@ test('refuses a README with no paragraph before its first section', () => {
|
||||
assert.equal(readmeTagline(`${title}## Install\n`).ok, false)
|
||||
})
|
||||
|
||||
test('refuses a README whose next section follows the badges, whatever its heading level', () => {
|
||||
assert.equal(readmeTagline(`${title}# Install\n\nRun it with Jira.\n`).ok, false)
|
||||
})
|
||||
|
||||
test('refuses markup, which npm would show as raw characters', () => {
|
||||
for (const markup of ['`code`', '[link](https://example.com)', '**bold**', '_em_', '<b>x</b>']) {
|
||||
for (const markup of ['`code`', '[link](https://example.com)', '**bold**', '_em_', '~~old~~', '<b>x</b>']) {
|
||||
assert.equal(readmeTagline(`${title}Convert ${markup}.\n`).ok, false, markup)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user