Add tests for exposed identifiers
This commit is contained in:
parent
27bd4412fd
commit
b19151cedd
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,14 @@ import {directive as syntax, directiveHtml as html} from '../dev/index.js'
|
|||
|
||||
const own = {}.hasOwnProperty
|
||||
|
||||
test('core', async () => {
|
||||
assert.deepEqual(
|
||||
Object.keys(await import('micromark-extension-directive')).sort(),
|
||||
['directive', 'directiveHtml'],
|
||||
'should expose the public api'
|
||||
)
|
||||
})
|
||||
|
||||
test('micromark-extension-directive (syntax, text)', () => {
|
||||
assert.equal(
|
||||
micromark('\\:a', options()),
|
||||
|
|
Loading…
Add table
Reference in a new issue