Skip to content

Commit

Permalink
Refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 8, 2024
1 parent fa6124c commit ef851e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ test('math', async function (t) {
})

await t.test(
'should skip `mathFlow` and `mathText` construct if `disable.null` includes `mathFlow` and `mathText`',
'should skip `mathFlow` and `mathText` construct if `disable.null` includes `mathFlow` and `mathText`',
async function () {
assert.equal(
micromark('$a$, $$b$$, $$$c$$$', {
micromark('$a$, $$b$$\n\n$$\nc\n$$', {
extensions: [math(), {disable: {null: ['mathFlow', 'mathText']}}],
htmlExtensions: [mathHtml()]
}),
'<p>$a$, $$b$$, $$$c$$$</p>'
'<p>$a$, $$b$$</p>\n<p>$$\nc\n$$</p>'
)
}
)
Expand Down

0 comments on commit ef851e5

Please sign in to comment.