Skip to content

Commit

Permalink
Add tests for exposed identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 6, 2023
1 parent 0a1f3e2 commit 0b9555b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('?')
Expand Down

0 comments on commit 0b9555b

Please sign in to comment.