smartmarkdown/test/test.ts

10 lines
267 B
TypeScript
Raw Normal View History

2018-09-22 19:58:33 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmarkdown from '../ts/index';
tap.test('first test', async () => {
2018-09-22 22:21:31 +00:00
const mdString = smartmarkdown.markdownToHtml('# Hi!');
2019-05-05 15:41:39 +00:00
expect(mdString).to.equal('<h1 id="hi">Hi!</h1>\n');
2018-09-22 19:58:33 +00:00
});
tap.start();