import { expect, tap } from '@pushrocks/tapbundle'; import * as smartmarkdown from '../ts/index.js'; let smartMarkdownInstance: smartmarkdown.SmartMarkdown; tap.test('should create a valid instance of SmartMarkdown', async () => { smartMarkdownInstance = new smartmarkdown.SmartMarkdown(); expect(smartMarkdownInstance).toBeInstanceOf(smartmarkdown.SmartMarkdown); }); tap.test('should convert a markdown string to html', async () => { const markdownString = '# Hi!'; const mdParsedResult = await smartMarkdownInstance.getMdParsedResultFromMarkdown(markdownString); const htmlString = mdParsedResult.html; expect(htmlString).toEqual('