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 Jan 23, 2023
1 parent 0409b6a commit eadb7a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ import test from 'node:test'
import {fromMarkdown} from 'mdast-util-from-markdown'
import {u} from 'unist-builder'
import {removePosition} from './index.js'
import * as mod from './index.js'

test('removePosition', () => {
assert.deepEqual(
Object.keys(mod).sort(),
['removePosition'],
'should expose the public api'
)

test('removePosition()', () => {
const empty = {position: undefined}

assert.deepEqual(
Expand Down

0 comments on commit eadb7a8

Please sign in to comment.