diff options
Diffstat (limited to 'src/tests/markdownit.spec.js')
-rw-r--r-- | src/tests/markdownit.spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/markdownit.spec.js b/src/tests/markdownit.spec.js index 69ce3673d..30748860a 100644 --- a/src/tests/markdownit.spec.js +++ b/src/tests/markdownit.spec.js @@ -1,5 +1,7 @@ import markdownit from './../markdownit' import { typesAvailable } from '../markdownit/callouts' +import tableMarkdown from './fixtures/table.md' +import tableHtml from './fixtures/table.html' describe('markdownit', () => { @@ -27,6 +29,11 @@ describe('markdownit', () => { `)) }) + it('renders tables', () => { + const rendered = markdownit.render(tableMarkdown) + expect(rendered).toBe(tableHtml) + }) + describe('callouts', () => { typesAvailable.forEach((type) => { it(`render ${type}`, () => { |