diff --git a/packages/backend/test/mfm.ts b/packages/backend/test/mfm.ts index 5218942a5..5b9e47414 100644 --- a/packages/backend/test/mfm.ts +++ b/packages/backend/test/mfm.ts @@ -1,20 +1,19 @@ import * as assert from 'assert'; -import * as mfm from 'mfm-js'; import { toHtml } from '../src/mfm/to-html.js'; import { fromHtml } from '../src/mfm/from-html.js'; describe('toHtml', () => { - it('br', () => { + it('br', async () => { const input = 'foo\nbar\nbaz'; const output = '

foo
bar
baz

'; - assert.equal(toHtml(mfm.parse(input)), output); + assert.equal(await toHtml(input), output); }); - it('br alt', () => { + it('br alt', async () => { const input = 'foo\r\nbar\rbaz'; const output = '

foo
bar
baz

'; - assert.equal(toHtml(mfm.parse(input)), output); + assert.equal(await toHtml(input), output); }); });