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 a19c158 commit c01272c
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 @@ -9,8 +9,15 @@ import assert from 'node:assert/strict'
import test from 'node:test'
import {u} from 'unist-builder'
import {map} from './index.js'
import * as mod from './index.js'

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

/** @type {Root} */
const rootA = u('root', [u('node', [u('leaf', '1')]), u('leaf', '2')])
assert.deepEqual(
Expand Down

0 comments on commit c01272c

Please sign in to comment.