From b19151cedd728d524da6de53b4464d0b1d66966d Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 30 Mar 2023 15:18:26 +0200 Subject: [PATCH] Add tests for exposed identifiers --- test/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/index.js b/test/index.js index 2880738..3a8aca9 100644 --- a/test/index.js +++ b/test/index.js @@ -12,6 +12,14 @@ import {directive as syntax, directiveHtml as html} from '../dev/index.js' const own = {}.hasOwnProperty +test('core', async () => { + assert.deepEqual( + Object.keys(await import('micromark-extension-directive')).sort(), + ['directive', 'directiveHtml'], + 'should expose the public api' + ) +}) + test('micromark-extension-directive (syntax, text)', () => { assert.equal( micromark('\\:a', options()),