Skip to content

Commit 0a09b25

Browse files
committed
Refactor tests for exposed identifiers
1 parent 103b11f commit 0a09b25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import {fromText} from './index.js'
66
import * as mod from './index.js'
77

88
test('fromText', () => {
9-
const api = Object.keys(mod)
10-
assert.ok(api.includes('fromText'), 'should expose `fromText`')
11-
assert.equal(api.length, 1, 'should expose the public api')
9+
assert.deepEqual(
10+
Object.keys(mod).sort(),
11+
['fromText'],
12+
'should expose the public api'
13+
)
1214

1315
assert.deepEqual(
1416
// @ts-expect-error runtime.

0 commit comments

Comments
 (0)