Add tests for exposed identifiers

This commit is contained in:
Titus Wormer 2023-03-30 15:18:26 +02:00
parent 27bd4412fd
commit b19151cedd
No known key found for this signature in database
GPG key ID: E6E581152ED04E2E

View file

@ -12,6 +12,14 @@ import {directive as syntax, directiveHtml as html} from '../dev/index.js'
const own = {}.hasOwnProperty 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)', () => { test('micromark-extension-directive (syntax, text)', () => {
assert.equal( assert.equal(
micromark('\\:a', options()), micromark('\\:a', options()),