Skip to content

Commit a1aba33

Browse files
committed
Add tests for exposed identifiers
1 parent 011d649 commit a1aba33

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@
99
import assert from 'node:assert/strict'
1010
import test from 'node:test'
1111
import {commentMarker} from './index.js'
12+
import * as mod from './index.js'
13+
14+
test('commentMaker', () => {
15+
assert.deepEqual(
16+
Object.keys(mod).sort(),
17+
['commentMarker'],
18+
'should expose the public api'
19+
)
1220

13-
test('commentMaker(node)', () => {
1421
// @ts-expect-error: runtime: not enough arguments.
1522
assert.equal(commentMarker(), null, 'should work without node')
1623

0 commit comments

Comments
 (0)