Skip to content

Commit d723863

Browse files
committed
Refactor tests for exposed identifiers
1 parent 563d8d4 commit d723863

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ const document = new JSDOM().window.document
1818
globalThis.document = document
1919

2020
test('toDom', () => {
21-
const api = Object.keys(mod)
22-
assert.ok(api.includes('toDom'), 'should expose `toDom`')
23-
assert.equal(api.length, 1, 'should expose the public api')
21+
assert.deepEqual(
22+
Object.keys(mod).sort(),
23+
['toDom'],
24+
'should expose the public api'
25+
)
2426

2527
assert.equal(
2628
// @ts-expect-error runtime.

0 commit comments

Comments
 (0)