We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab7eb0b commit 748289fCopy full SHA for 748289f
test.js
@@ -1,8 +1,15 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {toString} from './index.js'
4
+import * as mod from './index.js'
5
6
test('toString', () => {
7
+ assert.deepEqual(
8
+ Object.keys(mod).sort(),
9
+ ['toString'],
10
+ 'should expose the public api'
11
+ )
12
+
13
// @ts-expect-error: runtime.
14
assert.equal(toString(), '', 'should not fail on a missing node')
15
assert.equal(toString(null), '', 'should not fail on `null` missing node')
0 commit comments