Skip to content

Commit

Permalink
Add tests for exposed identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Mar 30, 2023
1 parent ee1e481 commit 38b7220
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import {math as syntax, mathHtml as html} from 'micromark-extension-math'
// @ts-expect-error: types are incorrect.
const renderToString = katex.renderToString

test('core', async () => {
assert.deepEqual(
Object.keys(await import('micromark-extension-math')).sort(),
['math', 'mathHtml'],
'should expose the public api'
)
})

test('markdown -> html (micromark)', () => {
assert.equal(
micromark('$a$, $$b$$, $$$c$$$', {
Expand Down

0 comments on commit 38b7220

Please sign in to comment.