Skip to content

Commit 787848f

Browse files
committed
Add tests for exposed identifiers
1 parent a64af0e commit 787848f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

test/all.js renamed to test/core.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ import test from 'node:test'
33
import {u} from 'unist-builder'
44
import {h} from 'hastscript'
55
import {selectAll} from '../index.js'
6+
import * as mod from '../index.js'
7+
8+
test('select', () => {
9+
assert.deepEqual(
10+
Object.keys(mod).sort(),
11+
['matches', 'select', 'selectAll'],
12+
'should expose the public api'
13+
)
14+
})
615

716
test('all together now', () => {
817
assert.deepEqual(

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable import/no-unassigned-import */
2+
import './core.js'
23
import './matches.js'
34
import './select.js'
45
import './select-all.js'
5-
import './all.js'
66
import './svg.js'
77
/* eslint-enable import/no-unassigned-import */

0 commit comments

Comments
 (0)