We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103b11f commit 0a09b25Copy full SHA for 0a09b25
test.js
@@ -6,9 +6,11 @@ import {fromText} from './index.js'
6
import * as mod from './index.js'
7
8
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')
+ assert.deepEqual(
+ Object.keys(mod).sort(),
+ ['fromText'],
12
+ 'should expose the public api'
13
+ )
14
15
assert.deepEqual(
16
// @ts-expect-error runtime.
0 commit comments