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 0340921 commit 4ec77a0
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
@@ -1,8 +1,15 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {u} from './index.js'
import * as mod from './index.js'

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

assert.deepEqual(
u('root', [
u('subtree', {id: 1}),
Expand Down

0 comments on commit 4ec77a0

Please sign in to comment.