From 0b9555bcb21b889e4845a1fa58c1ca2162520808 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 6 Feb 2023 14:55:34 +0100 Subject: [PATCH] Add tests for exposed identifiers --- test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test.js b/test.js index 4c07eb1..a7eb6c4 100644 --- a/test.js +++ b/test.js @@ -2,8 +2,15 @@ import assert from 'node:assert/strict' import test from 'node:test' import {VFile} from 'vfile' import {toESLint} from './index.js' +import * as mod from './index.js' test('toESLint', () => { + assert.deepEqual( + Object.keys(mod).sort(), + ['toESLint'], + 'should expose the public api' + ) + const file = new VFile({path: '~/example.md'}) const message = file.info('?')