Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tap.test('Remove max heading w/o preserve', (assert) => {
let expected = ' Heading\n'
let actual = remark
.use(behead, {weight: -10, preserve: false})
.process('## Heading')
assert.equal(actual, expected)
assert.end()
})