Skip to content

Commit 7b9f9e1

Browse files
committed
Add tests for exposed identifiers
1 parent f651ac8 commit 7b9f9e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {scriptSupporting} from './index.js'
4+
import * as mod from './index.js'
45

56
test('scriptSupporting', () => {
7+
assert.deepEqual(
8+
Object.keys(mod).sort(),
9+
['scriptSupporting'],
10+
'should expose the public api'
11+
)
12+
613
assert.equal(scriptSupporting(), false, 'should return `false` without node')
714

815
assert.equal(

0 commit comments

Comments
 (0)